iMi standard PHP dev box as docker image.
It has php, apache2, mariadb-client, composer, phive, iMi's special iRobo fork, n98-magerun, none js, yarn, bower and gulp installed.
Currently beta.
7.2
,latest
(Dockerfile)7.1
(Dockerfile)7.0
(Dockerfile)5.6
(Dockerfile)
Each tag is also available as a "base" version with only php and apache installed, no tools.
Simply run
docker run -v $PWD:/var/www/html -p 80:80 --name devbuntu -d imid/devbuntu
This will run the image in the latest stable php version (7.2) with your current directory mounted to /var/www/html
.
To connect inside the container to execute for example composer, run
docker exec -it devbuntu bash
This will throw you in a bash session inside the container.
You can change the apache webroot by using the APACHE_DOCUMENT_ROOT
environment variable, for example:
docker run -v $PWD:/var/www/html -p 80:80 -e APACHE_DOCUMENT_ROOT=/var/www/html/public --name devbuntu -d imid/devbuntu
Apache runs with the user www-data
. To ensure correct permissions, it sometimes is useful to become the user running the webserver. To do this inside the docker container, simply run
~$ w3d
If you run into any issues with the image or discover a bug, feel free to create a new issue on Github.
Or, if you have any improvements to the image, fork and create a pull request.
General help and feedback is below in the comments.
iMi digital GmbH offers Magento & Laravel related open source modules. If you are confronted with any bugs, you may want to open an issue here.
In need of support or an implementation of a modul in an existing system, feel free to contact us. In this case, we will provide full service support for a fee.
Of course we provide development of closed-source modules or full magento shops as well.
Copyright 2018 iMi digital GmbH Licensed under MIT