From 93d5b318fe2cbea88f4bd47de0b3d91183ded495 Mon Sep 17 00:00:00 2001 From: terry Date: Sat, 19 Aug 2017 22:58:40 +0800 Subject: [PATCH] add drupal console to workspace --- docker-compose.yml | 1 + env-example | 1 + workspace/Dockerfile-56 | 14 ++++++++++++++ workspace/Dockerfile-70 | 14 ++++++++++++++ workspace/Dockerfile-71 | 14 ++++++++++++++ 5 files changed, 44 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index e5b875e..976e370 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 423e1ae..15beb1a 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 a3292e9..a5ba788 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 c6c4e38..3d1cde5 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 5a39096..b0320e6 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 #####################################