These Dockerfiles define the massgov/drupal-container images. These images are automatically built by Docker Hub.
The variants of this image are:
ci
- An image appropriate for use in continuous integration environments. Closely mirrors Acquia's application servers, except that mail is disabled.
dev
- Unused. An image appropriate for use in development environments. Adds Xdebug, Blackfire, ...
- XDEBUG_ENABLE: Adds xdebug extension which is configured to autostart.
- MEMORY_LIMIT: Set the PHP memory limit that is used.
- XDEBUG_REMOTE_HOST: Defaults to
host.docker.internal
(good for OSX). If using Linux, see docker/for-linux#264 and https://biancatamayo.me/blog/2017/11/03/docker-add-host-ip/ - XDEBUG_IDEKEY: Defaults to
PHPSTORM
.
- Make changes to the Dockerfile for the desired variant (2022 update: we only use ci variant)
- Test changes by building the image locally using
docker-compose build
- Note changes in CHANGELOG.txt.
- Commit and push changes to this repository:
git commit -m "My message" git push origin master
- Optionally, tag a new release:
When you tag a release, you should also update your code to use the new version as soon as it's available. You can check on the availability on the build details page.
git tag 1.0.0 git push origin 1.0.0
Changes that are pushed to the master
branch are built automatically by Docker hub. For example, a change pushed to master affecting the ci
variant would update massgov/drupal-container:ci
. Tags are also built automatically and create a new tagged version of the image. For example, a new tag 4.1.0
would create new versions of all variants, which would be available using massgov/drupal-container:4.1.0-ci
etc.