Stack Instance Docker Centos
When your developing (for example) in Symfony2 and want to use Docker for development, you can use this package to include Docker into your (Symfony2) project. This package will include a Docker instance with Centos 7 installed with php 7.2 + apache2 and the latest MariaDB. Just follow the installation steps and your done., (*1)
Step 1: run command:, (*2)
composer require stackinstance/docker-centos:dev-master --dev
Step 2: run the following command in your project root:, (*3)
vendor/stackinstance/docker-centos/install.sh
Step 3: Open /project.cfg and change myproject to your own projectname. Be aware that the projectname may not contain any special characters underscores or spaces!, (*4)
PROJECTNAME=myproject
Step 4: Add additional bash code to run when the docker image is build:, (*5)
Open /extra.sh and add bash code
Step 5: Open docker terminal and the following command in your project root:, (*6)
bash docker/tools/rebuild.sh
Your (local) project root will be mapped to the /var/www directory on the Docker instance. The web root folder is mapped to the (local) web directory in your project., (*7)
If you want to use php 5.6 instead of php 7.2, you need to use version 3.2.0. This version also uses MySQL instead of MariaDB:, (*8)
composer require stackinstance/docker-centos:3.2.0