A bunch of tweaks to docker setup to make it work across both development and production setups. Suggest we squash this on merge.
See updated documentation for usage instructions, but in summary:
Make sure you are using development or production setup in .env file
docker-compose build --build-arg GIT_BRANCH=production-containers app // To make sure this branch is used
docker-compose up
To try php7 versions a --build-arg PHP_VERSION=7 argument could be used with composer-build (or set in docker-compose.*.yml files).
PS! If testing with production configuration make sure to mount the "correct" app/Config files into your container. The production env expect these to be provided from another location than the wannabe repo. Example:
Going to merge this today to facilitate our wannabe move to new docker environment. None of the changes here should affect non-docker/container usage, so should be pretty safe.
A bunch of tweaks to docker setup to make it work across both development and production setups. Suggest we squash this on merge.
See updated documentation for usage instructions, but in summary:
.env
filedocker-compose build --build-arg GIT_BRANCH=production-containers app
// To make sure this branch is useddocker-compose up
To try php7 versions a
--build-arg PHP_VERSION=7
argument could be used withcomposer-build
(or set indocker-compose.*.yml
files).PS! If testing with production configuration make sure to mount the "correct"
app/Config
files into your container. The production env expect these to be provided from another location than the wannabe repo. Example: