...
 
Commits (2)
......@@ -7,9 +7,9 @@ ARG VCS_REF
ARG PHP_REDIS_VERION="3.1.6"
ARG PHP_IMAGICK_VERION="3.4.3"
ARG PHP_YAML_VERION="2.0.2"
ARG PHP_YAML_VERION="2.0.4"
ARG PHP_UUID_VERION="1.0.4"
ARG PHP_XDEBUG_VERION="2.7.0beta1"
ARG PHP_XDEBUG_VERION="2.7.0"
ARG CADDY_VERSION="0.11.0"
ARG CADDY_ARCHITECTURE="amd64"
......
......@@ -7,9 +7,9 @@ ARG VCS_REF
ARG PHP_REDIS_VERION="3.1.6"
ARG PHP_IMAGICK_VERION="3.4.3"
ARG PHP_YAML_VERION="2.0.2"
ARG PHP_YAML_VERION="2.0.4"
ARG PHP_UUID_VERION="1.0.4"
ARG PHP_XDEBUG_VERION="2.7.0beta1"
ARG PHP_XDEBUG_VERION="2.7.0"
ARG CADDY_VERSION="0.11.0"
ARG CADDY_ARCHITECTURE="amd64"
......
......@@ -7,9 +7,9 @@ ARG VCS_REF
ARG PHP_REDIS_VERION="3.1.6"
ARG PHP_IMAGICK_VERION="3.4.3"
ARG PHP_YAML_VERION="2.0.2"
ARG PHP_YAML_VERION="2.0.4"
ARG PHP_UUID_VERION="1.0.4"
ARG PHP_XDEBUG_VERION="2.7.0beta1"
ARG PHP_XDEBUG_VERION="2.7.0"
ARG CADDY_VERSION="0.11.0"
ARG CADDY_ARCHITECTURE="amd64"
......
......@@ -7,9 +7,9 @@ ARG VCS_REF
ARG PHP_REDIS_VERION="3.1.6"
ARG PHP_IMAGICK_VERION="3.4.3"
#ARG PHP_YAML_VERION="2.0.2"
ARG PHP_YAML_VERION="2.0.4"
ARG PHP_UUID_VERION="1.0.4"
ARG PHP_XDEBUG_VERION="2.7.0beta1"
ARG PHP_XDEBUG_VERION="2.7.0"
ARG CADDY_VERSION="0.11.0"
ARG CADDY_ARCHITECTURE="amd64"
......
......@@ -7,7 +7,7 @@ ARG VCS_REF
ARG PHP_REDIS_VERION="3.1.6"
ARG PHP_IMAGICK_VERION="3.4.3"
ARG PHP_YAML_VERION="2.0.2"
ARG PHP_YAML_VERION="2.0.4"
ARG PHP_UUID_VERION="1.0.4"
ARG CADDY_VERSION="0.11.0"
......
......@@ -29,6 +29,8 @@ fi
exit 0
```
Custom start script run only when the `FLOWAPP_CONTEXT` is `Production`.
## Flow Framework support
When you start your container, the following commands are run automatically:
......@@ -43,7 +45,9 @@ This feature use the "Custom start scripts" and the file is located at `/docker-
## Security
Introducing `fixuid`, before version 1.0 everything in the container run as root. Now we
define a default user `docker` (UID: 1000, GID: 1000). You can change the UID/GID to match your local user. Check the [documentation](https://github.com/boxboat/fixuid/) for the required arguments. To enable `fixuid` you must set the env variable `FLOWAPP_CONTEXT` to `Development`.
define a default user `docker` (UID: 1000, GID: 1000). You can change the UID/GID to match your local user. Check the [documentation](https://github.com/boxboat/fixuid/) for the required arguments.
To enable `fixuid` you must set the env variable `FLOWAPP_CONTEXT` to `Development`.
**Warning**: You MUST never use `fixuid` in production.
......
......@@ -2,21 +2,22 @@
FLOWAPP_CONTEXT="${FLOWAPP_CONTEXT:-Development}"
DIR=/docker-entrypoint.d
if [ -d "$DIR" ]; then
for SCRIPT in $DIR/*; do
if [ -f $SCRIPT -a -x $SCRIPT ]; then
echo
echo "Run $SCRIPT ..."
$SCRIPT
fi
done
fi
if [ $FLOWAPP_CONTEXT == 'Development' ]; then
fixuid "$@"
else
echo "fixuid: skipped because FLOWAPP_CONTEXT is not Development"
DIR=/docker-entrypoint.d
if [ -d "$DIR" ]; then
for SCRIPT in $DIR/*; do
if [ -f $SCRIPT -a -x $SCRIPT ]; then
echo
echo "Run $SCRIPT ..."
$SCRIPT
fi
done
fi
exec "$@"
fi