Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

OpencontentCoop/docker-ezpublish

Repository files navigation

Ez Publish Legacy

GitHub GitHub release (latest SemVer)

Image opencontentcoop/ezpublish

Docker Automated build Docker Cloud Build Status MicroBadger Layers MicroBadger Image Size

Image opencontentcoop/ezpublish-nginx

Docker Automated build Docker build status MicroBadger Layers MicroBadger Image Size

This repository is used to create e Docker base-image for projects developed by Opencontent using Ez Publish.

Tech info

To better understand how we use this repo, please check some project that use it as base-image:

Basically we use the base image to install all the OS dependencies of Ez, the next step we add to Dockerfile is commonly add the composer.* files for the specific project.

Nginx image

The nginx image is a simple alpine-based nginx with a virtualhost configured for ez publish

The image uses also nginx-prometheus-exporter and expose nginx metrics in prometheus format on /metrics url, check the official Grafana dashboard to show these metrics

Configuration using Environment Variables

Variable Type Default value Description
EZ_ROOT String /var/www/html Root of EZ Filesystem
EZ_INSTANCE String prototipo If set change the value of '$instance' variable in nginx virtulahost
NO_FORCE_CONTAINER_REFRESH Boolean true If set to true
PROMETHEUS_DISABLE Boolean none If set to TRUE disable the prometheus monitoring
DEBUG Boolean none If set to TRUE enable debugging of bash scripts
BEHAT_SELENIUM_HOST String none BeHat Selenium host
BEHAT_WEB_HOST String none BeHat Web Host
PHP_INI_ENV_[NAME] Any variable with prefix PHP_INI_ENV is injected in ${PHP_INI_DIR}/conf.d/zzz_custom_settings.ini

There are also some variables coming from the prometheus exports, but they are not useful in this nginx setup, where the configuration of nginx is hardcoded. For more details check: https://github.com/nginxinc/nginx-prometheus-exporter

Customize image entrypoint

Add your entrypoint customization scripts to /docker-entrypoint-initdb.d/, any sh file there is executed at some point of docker container bootstrap