diff --git a/docker-compose.yml b/docker-compose.yml index e5b875e9..976e3703 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -23,6 +23,7 @@ services: - INSTALL_NODE=${WORKSPACE_INSTALL_NODE} - INSTALL_YARN=${WORKSPACE_INSTALL_YARN} - INSTALL_DRUSH=${WORKSPACE_INSTALL_DRUSH} + - INSTALL_DRUPAL_CONSOLE=${WORKSPACE_INSTALL_DRUPAL_CONSOLE} - INSTALL_AEROSPIKE=${WORKSPACE_INSTALL_AEROSPIKE} - INSTALL_V8JS=${WORKSPACE_INSTALL_V8JS} - COMPOSER_GLOBAL_INSTALL=${WORKSPACE_COMPOSER_GLOBAL_INSTALL} diff --git a/env-example b/env-example index 423e1aef..15beb1a2 100644 --- a/env-example +++ b/env-example @@ -36,6 +36,7 @@ WORKSPACE_INSTALL_MSSQL=false WORKSPACE_INSTALL_NODE=false WORKSPACE_INSTALL_YARN=false WORKSPACE_INSTALL_DRUSH=false +WORKSPACE_INSTALL_DRUPAL_CONSOLE=false WORKSPACE_INSTALL_AEROSPIKE=false WORKSPACE_INSTALL_V8JS=false WORKSPACE_COMPOSER_GLOBAL_INSTALL=false diff --git a/workspace/Dockerfile-56 b/workspace/Dockerfile-56 index a3292e9f..a5ba7889 100644 --- a/workspace/Dockerfile-56 +++ b/workspace/Dockerfile-56 @@ -210,6 +210,20 @@ RUN if [ ${INSTALL_DRUSH} = true ]; then \ drush core-status \ ;fi +##################################### +# Drupal Console: +##################################### +USER root +ARG INSTALL_DRUPAL_CONSOLE=false +ENV INSTALL_DRUPAL_CONSOLE ${INSTALL_DRUPAL_CONSOLE} +RUN if [ ${INSTALL_DRUPAL_CONSOLE} = true ]; then \ + apt-get update -yqq && \ + apt-get -y install mysql-client && \ + curl https://drupalconsole.com/installer -L -o drupal.phar && \ + mv drupal.phar /usr/local/bin/drupal && \ + chmod +x /usr/local/bin/drupal \ +;fi + USER laradock ##################################### diff --git a/workspace/Dockerfile-70 b/workspace/Dockerfile-70 index c6c4e382..3d1cde55 100644 --- a/workspace/Dockerfile-70 +++ b/workspace/Dockerfile-70 @@ -210,6 +210,20 @@ RUN if [ ${INSTALL_DRUSH} = true ]; then \ drush core-status \ ;fi +##################################### +# Drupal Console: +##################################### +USER root +ARG INSTALL_DRUPAL_CONSOLE=false +ENV INSTALL_DRUPAL_CONSOLE ${INSTALL_DRUPAL_CONSOLE} +RUN if [ ${INSTALL_DRUPAL_CONSOLE} = true ]; then \ + apt-get update -yqq && \ + apt-get -y install mysql-client && \ + curl https://drupalconsole.com/installer -L -o drupal.phar && \ + mv drupal.phar /usr/local/bin/drupal && \ + chmod +x /usr/local/bin/drupal \ +;fi + USER laradock ##################################### diff --git a/workspace/Dockerfile-71 b/workspace/Dockerfile-71 index 5a390966..b0320e6b 100644 --- a/workspace/Dockerfile-71 +++ b/workspace/Dockerfile-71 @@ -207,6 +207,20 @@ RUN if [ ${INSTALL_DRUSH} = true ]; then \ drush core-status \ ;fi +##################################### +# Drupal Console: +##################################### +USER root +ARG INSTALL_DRUPAL_CONSOLE=false +ENV INSTALL_DRUPAL_CONSOLE ${INSTALL_DRUPAL_CONSOLE} +RUN if [ ${INSTALL_DRUPAL_CONSOLE} = true ]; then \ + apt-get update -yqq && \ + apt-get -y install mysql-client && \ + curl https://drupalconsole.com/installer -L -o drupal.phar && \ + mv drupal.phar /usr/local/bin/drupal && \ + chmod +x /usr/local/bin/drupal \ +;fi + USER laradock #####################################