This Dockerfile relies on official library Dockerfile with a customized entrypoint allowing to perform custom configuration with shell scripts found in /docker-entrypoint.d/
during container startup.
Currently registered script(s) :
- optionally interpolate the environment variable present in any file under
/cm_configs
with a filename suffix.sample
and move all files to their respective directory (see below).
TODO logs ? servicves ?
Simply run
bash build.sh
This scripts supports the following environment variables (optionally located in a .env
file) as inputs:
NGINX_VERSION
: the Nginx version used in the image. It must be a valid Docker tag for officialnginx
image.IMAGE_VERSION
: version of the custom imageDOCKER_NAMESPACE
is the Docker namespace for the built imageSCRIPTS_REPO_URL
: full url (http/https) of the git repository containing the initialization scripts (including git credentials if necessary).SCRIPTS_REPO_TAG
: tag of the commit from which the scripts must be extractedSCRIPTS_REPO_BRANCH
: branch from which the scripts must be extracted
It builds an image NAMESPACE/nginx:NGINX_VERSION-IMAGE_VERSION
.