From 2689638d7d388d5c9ab0d099ddcead1c802d1f8c Mon Sep 17 00:00:00 2001 From: "Mike P. Sinn" Date: Tue, 27 Nov 2018 02:59:14 -0600 Subject: [PATCH] MySQL Client in Workspace (#1892) --- docker-compose.yml | 1 + env-example | 1 + workspace/Dockerfile | 13 +++++++++++++ 3 files changed, 15 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 5547092f..b7cbd30b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -93,6 +93,7 @@ services: - INSTALL_SWOOLE=${WORKSPACE_INSTALL_SWOOLE} - INSTALL_LIBPNG=${WORKSPACE_INSTALL_LIBPNG} - INSTALL_IONCUBE=${WORKSPACE_INSTALL_IONCUBE} + - INSTALL_MYSQL_CLIENT=${WORKSPACE_INSTALL_MYSQL_CLIENT} - PUID=${WORKSPACE_PUID} - PGID=${WORKSPACE_PGID} - CHROME_DRIVER_VERSION=${WORKSPACE_CHROME_DRIVER_VERSION} diff --git a/env-example b/env-example index f0f874b9..7df991be 100644 --- a/env-example +++ b/env-example @@ -123,6 +123,7 @@ WORKSPACE_INSTALL_PHALCON=false WORKSPACE_INSTALL_SWOOLE=false WORKSPACE_INSTALL_LIBPNG=false WORKSPACE_INSTALL_IONCUBE=false +WORKSPACE_INSTALL_MYSQL_CLIENT=false WORKSPACE_PUID=1000 WORKSPACE_PGID=1000 WORKSPACE_CHROME_DRIVER_VERSION=2.42 diff --git a/workspace/Dockerfile b/workspace/Dockerfile index 04d38118..8e65a2d3 100644 --- a/workspace/Dockerfile +++ b/workspace/Dockerfile @@ -877,6 +877,19 @@ RUN if [ $INSTALL_PHALCON = true ]; then \ && rm -rf /tmp/cphalcon* \ ;fi +########################################################################### +# MySQL Client: +########################################################################### + +USER root + +ARG INSTALL_MYSQL_CLIENT=false + +RUN if [ ${INSTALL_MYSQL_CLIENT} = true ]; then \ + apt-get update -yqq && \ + apt-get -y install mysql-client \ +;fi + ########################################################################### # Check PHP version: ###########################################################################