Skip to content

Commit 409f916

Browse files
authored
Merge pull request laradock#1502 from wvdongen/master
Fix Drush installation, consistent arguments, deprecated install note
2 parents a03ce23 + 185ba60 commit 409f916

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ services:
8787
- CHROME_DRIVER_VERSION=${WORKSPACE_CHROME_DRIVER_VERSION}
8888
- NODE_VERSION=${WORKSPACE_NODE_VERSION}
8989
- YARN_VERSION=${WORKSPACE_YARN_VERSION}
90+
- DRUSH_VERSION=${WORKSPACE_DRUSH_VERSION}
9091
- TZ=${WORKSPACE_TIMEZONE}
9192
- BLACKFIRE_CLIENT_ID=${BLACKFIRE_CLIENT_ID}
9293
- BLACKFIRE_CLIENT_TOKEN=${BLACKFIRE_CLIENT_TOKEN}
93-
- DRUSH_VERSION=${DRUSH_VERSION}
9494
volumes:
9595
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
9696
extra_hosts:

env-example

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ DOCKER_SYNC_STRATEGY=native_osx
7070

7171
### WORKSPACE #############################################
7272

73-
7473
WORKSPACE_COMPOSER_GLOBAL_INSTALL=true
7574
WORKSPACE_COMPOSER_REPO_PACKAGIST=
7675
WORKSPACE_INSTALL_NODE=true
@@ -89,6 +88,7 @@ WORKSPACE_INSTALL_MONGO=false
8988
WORKSPACE_INSTALL_AMQP=false
9089
WORKSPACE_INSTALL_MSSQL=false
9190
WORKSPACE_INSTALL_DRUSH=false
91+
WORKSPACE_DRUSH_VERSION=8.1.16
9292
WORKSPACE_INSTALL_DRUPAL_CONSOLE=false
9393
WORKSPACE_INSTALL_AEROSPIKE=false
9494
WORKSPACE_INSTALL_V8JS=false
@@ -349,7 +349,3 @@ LARAVEL_ECHO_SERVER_PORT=6001
349349
SOLR_VERSION=5.5
350350
SOLR_PORT=8983
351351
SOLR_DATAIMPORTHANDLER_MYSQL=false
352-
353-
### DRUSH_VERSION #########################################
354-
355-
DRUSH_VERSION=9.2.3

workspace/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,10 +319,14 @@ RUN if [ ${INSTALL_SWOOLE} = true ]; then \
319319
# Drush:
320320
###########################################################################
321321

322+
# Deprecated install of Drush 8 and earlier versions.
323+
# Drush 9 and up require Drush to be listed as a composer dependency of your site.
324+
322325
USER root
323326

324327
ARG INSTALL_DRUSH=false
325-
ARG DRUSH_VERSION=${DRUSH_VERSION}
328+
ARG DRUSH_VERSION
329+
ENV DRUSH_VERSION ${DRUSH_VERSION}
326330

327331
RUN if [ ${INSTALL_DRUSH} = true ]; then \
328332
apt-get update -yqq && \

0 commit comments

Comments
 (0)