- Fix Drush installation

- Consistent naming of arguments
- Add deprecated install note
This commit is contained in:
Wouter van Dongen
2018-04-23 20:30:47 +02:00
parent 0c41fceae1
commit 3ad17eca0a
3 changed files with 7 additions and 7 deletions

View File

@ -299,13 +299,17 @@ RUN if [ ${INSTALL_SWOOLE} = true ]; then \
# Drush:
###########################################################################
# Deprecated install of Drush 8 and earlier versions.
# Drush 9 and up require Drush to be listed as a composer dependency of your site.
USER root
ARG INSTALL_DRUSH=false
ARG DRUSH_VERSION
ENV DRUSH_VERSION ${DRUSH_VERSION}
RUN if [ ${INSTALL_DRUSH} = true ]; then \
apt-get -y install mysql-client && \
# Install Drush 8 with the phar file.
curl -fsSL -o /usr/local/bin/drush https://github.com/drush-ops/drush/releases/download/${DRUSH_VERSION}/drush.phar | bash && \
chmod +x /usr/local/bin/drush && \
drush core-status \