php-cli Docker image, based on Lagoon
php-fpm image, with all needed tools for daily operations.
Containers (or PODS) started from
cli images are responsible for building code for
node based projects.
The image also owns database CLIs for both MariaDB and PostgreSQL.
This Dockerfile is intended to be used as an base for any cli needs within Lagoon.
Lagoon & OpenShift adaptions¶
This image is prepared to be used on Lagoon which leverages OpenShift. There are therefore some things already done:
- Folder permissions are automatically adapted with
fix-permissionsso this image will work with a random user and therefore also on OpenShift.
COMPOSER_ALLOW_SUPERUSER=1removes warning about use of composer as root
80-shell-timeout.shscript checks if containers are running in a Kubernetes environment and then set a 10 minutes timeout to idle
- cli containers use ssh key injected by Lagoon or defined into
Included cli tools¶
The included cli tools are:
composerversion 1.9.0 (changeable via
nodejsverison v12 (as at October 2019)
Change NodeJS Version¶
By default this Image ships with the current Nodejs Version (v12 at time of writing this).
If you need another Version you can remove the current version and install the one of your choice.