Skip to content

Latest commit

 

History

History
72 lines (44 loc) · 3.01 KB

README.md

File metadata and controls

72 lines (44 loc) · 3.01 KB

PHP App Docker

License CircleCI GitHub stars GitHub forks

This is a very basic PHP docker container to test the connectivity to a Database.

The docker container creates a simple PHP Crud application which is based on the code from Tutorial Republic and updated to use the MariaDB Training Employees Database.


To Use

Terms of use

Nothing in this demonstration is designed to be used in production and this is not supplied, supported or endorsed by MariaDB.

CircleCI

This repository is designed to use CircleCi to build the application.

DigitalOcean Private Repo

This container needs to be pushed to a repository. I have chosen to use DigitalOcean for this.

If you wish to use your own repository you will need to amend the MakeFile script, otherwise please set the Environment Variables in CircleCI for your project.

DO_REPO
DO_ACCESS_TOKEN

Setting your DigitalOcean Access Token and Repository Name will allow the built Dodcker Image to be pushed.

Security

When building the docker container a Trivy Scan is completed on the image. Overtime this might start to fail and the base image might require updating.

The completion of this tool does not guarantee the security of this container.

Contributing to phpAppDocker

To contribute to the phpAppDocker repository, follow these steps:

  1. Fork this repository.
  2. Create a branch: git checkout -b <branch_name>.
  3. Make your changes and commit them: git commit -m '<commit_message>'
  4. Push to the original branch: git push origin phpAppDocker/<location>
  5. Create the pull request.

Alternatively see the GitHub documentation on creating a pull request.

Contact

If you want to contact me you can reach me at [email protected].

License

This project uses the following license: MIT.

Disclaimer

Whilst, I might currently work for MariaDB, this work was originally created before my employment by MariaDB and any development to these scripts is done strictly in my own time. It is therefore not endorsed, supported by or recommend by MariaDB.