diff --git a/bin/setup/vendor-symlink.sh b/bin/setup/vendor-symlink.sh deleted file mode 100644 index 20d602b..0000000 --- a/bin/setup/vendor-symlink.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash - diff --git a/docker/docker-compose-mysql.yml b/docker/docker-compose-mysql.yml index d540e03..ab8151a 100644 --- a/docker/docker-compose-mysql.yml +++ b/docker/docker-compose-mysql.yml @@ -3,14 +3,16 @@ version: '3' services: mysql: + image: ${TESTSTACK_PROJECT_NAME:-euts}_mysql build: context: images/mysql args: - timezone: ${TESTSTACK_TZ:-none} do_update_os: ${TESTSTACK_UPDATE_OS_ON_BUILD:-true} # note: Travis Xenial and Bionic images come with mysql 5.7 by default; Focal comes with mysql 8.0 # But mysql 5.6 is not recommended for EZP 5.4, so we default to 5.6 mysql_version: ${MYSQL_VERSION:-5.6} + project_name: ${TESTSTACK_PROJECT_NAME:-euts} + timezone: ${TESTSTACK_TZ:-none} hostname: mysql container_name: ${TESTSTACK_PROJECT_NAME:-euts}_mysql environment: diff --git a/docker/docker-compose-postgresql.yml b/docker/docker-compose-postgresql.yml index ead5c7f..2a7ed93 100644 --- a/docker/docker-compose-postgresql.yml +++ b/docker/docker-compose-postgresql.yml @@ -3,14 +3,16 @@ version: '3' services: postgresql: + image: ${TESTSTACK_PROJECT_NAME:-euts}_postgresql build: context: images/postgresql args: - timezone: ${TESTSTACK_TZ:-none} do_update_os: ${TESTSTACK_UPDATE_OS_ON_BUILD:-true} # note: Travis Xenial images come with PG 9.4-9.6,10; Bionic with 9.3-9.6,10,11 and Focal with 12 # We go with 9.5 as default because it is the lowest upstream supported version as of 11/2020... postgresql_version: ${POSTGRESQL_VERSION:-9.5} + project_name: ${TESTSTACK_PROJECT_NAME:-euts} + timezone: ${TESTSTACK_TZ:-none} hostname: postgresql container_name: ${TESTSTACK_PROJECT_NAME:-euts}_postgresql environment: diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index f746366..7cf267e 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -3,14 +3,16 @@ version: '3' services: ez: + image: ${TESTSTACK_PROJECT_NAME:-euts}_ez build: context: images/ez args: debian_mirror: ${TESTSTACK_DEBIAN_MIRROR:-none} debian_version: ${TESTSTACK_DEBIAN_VERSION:-buster} + do_update_os: ${TESTSTACK_UPDATE_OS_ON_BUILD:-true} php_version: ${TESTSTACK_PHP_VERSION:-default} + project_name: ${TESTSTACK_PROJECT_NAME:-euts} timezone: ${TESTSTACK_TZ:-none} - do_update_os: ${TESTSTACK_UPDATE_OS_ON_BUILD:-true} hostname: ez container_name: ${TESTSTACK_PROJECT_NAME:-euts}_ez environment: diff --git a/docker/images/ez/Dockerfile b/docker/images/ez/Dockerfile index 29f0c78..e04d8de 100644 --- a/docker/images/ez/Dockerfile +++ b/docker/images/ez/Dockerfile @@ -1,11 +1,15 @@ ARG debian_version=buster FROM debian:${debian_version}-slim +LABEL php_version.version=${php_version} +LABEL com.tanoconsulting.euts.project_name=${project_name} ARG debian_mirror=none ARG debian_version=buster -ARG php_version=default +ARG do_shrink_container=true ARG do_update_os=true +ARG php_version=default +ARG project_name=euts ARG timezone=none # Set up debian mirror @@ -42,10 +46,9 @@ RUN apt-get remove -y composer || echo An error on the line above is ok; \ # ----------------------------------------------------------------------------- RUN /root/build/createuser.sh +# Clear archives in apt cache folder to slim down the image # ----------------------------------------------------------------------------- - -# Shrink image: clear archives in apt cache folder -RUN apt-get clean && rm -rf /var/lib/apt/lists/* +RUN if [ "${do_shrink_container}" != "false" ]; then apt-get clean && rm -rf /var/lib/apt/lists/*; fi # @todo should we move these two commands to the top of the dockerfile to increase layer shareability ? COPY root/boot/*.sh /root/boot/ diff --git a/docker/images/mysql/Dockerfile b/docker/images/mysql/Dockerfile index b5df2da..ae5ba16 100644 --- a/docker/images/mysql/Dockerfile +++ b/docker/images/mysql/Dockerfile @@ -2,9 +2,11 @@ ARG mysql_version=5.6 FROM mysql:${mysql_version} LABEL mysql.version=${mysql_version} +LABEL com.tanoconsulting.euts.project_name=${project_name} ARG do_shrink_container=true ARG do_update_os=true +ARG project_name=euts ARG timezone=none # Configure timezone diff --git a/docker/images/postgresql/Dockerfile b/docker/images/postgresql/Dockerfile index 1a41175..32761cd 100644 --- a/docker/images/postgresql/Dockerfile +++ b/docker/images/postgresql/Dockerfile @@ -2,9 +2,11 @@ ARG postgresql_version=9.5 FROM postgres:${postgresql_version} LABEL postgresql.version=${postgresql_version} +LABEL com.tanoconsulting.euts.project_name=${project_name} ARG do_shrink_container=true ARG do_update_os=true +ARG project_name=euts ARG timezone=none # Configure timezone