Original instructions available here - https://github.com/openshift/source-to-image
IMAGE_NAME=singularo/s2i-shepherd-drupal
docker build -t ${IMAGE_NAME} .
The builder image can also be created by using the make command since a Makefile is included.
make
Once happy with local testing the image(s), both images can be pushed to the repo with:
Note: the IMAGE_TAG in the build-image.sh refers to the docker tag based on the branch name in the Dockerfile's.
make
make tag
make push
To enable newrelic, add lines like these examples to your .env file. LICENSE is the important one, APP should be different for each thing being monitored.
NEWRELIC_ENABLED=true
NEWRELIC_LICENSE="1b08384231238762323223233fc0ca1fe0df80bNRAL"
NEWRELIC_APP="aa-simon-local"
- Original style based on work on the Shepherd project:
- Single process per container
- apache2 is the main process
- php loaded as a module.
- Running the lightweight s6 init system
- Multiple processes per container
- apache2
- php-fpm
- s6 syslog interface
- Helpful links used in setup: