Allow for config of crush and opcache in the main docker file
This commit is contained in:
@ -37,6 +37,7 @@ MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
||||
# - INSTALL_MONGO= false
|
||||
# - COMPOSER_GLOBAL_INSTALL= false
|
||||
# - INSTALL_NODE= false
|
||||
# - INSTALL_drush= false
|
||||
#
|
||||
|
||||
#####################################
|
||||
@ -100,16 +101,18 @@ RUN if [ ${COMPOSER_GLOBAL_INSTALL} = true ]; then \
|
||||
#####################################
|
||||
# Drush:
|
||||
#####################################
|
||||
ENV DRUSH_VERSION 8.1.2
|
||||
|
||||
# Install Drush 8 with the phar file.
|
||||
USER root
|
||||
RUN curl -fsSL -o /usr/local/bin/drush "https://github.com/drush-ops/drush/releases/download/$DRUSH_VERSION/drush.phar" && \
|
||||
chmod +x /usr/local/bin/drush
|
||||
ENV DRUSH_VERSION 8.1.2
|
||||
ARG INSTALL_DRUSH=true
|
||||
ENV INSTALL_DRUSH ${INSTALL_DRUSH}
|
||||
RUN if [ ${INSTALL_DRUSH} = true ]; then \
|
||||
# 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 \
|
||||
;fi
|
||||
|
||||
#Check if drush works for the laradock user
|
||||
USER laradock
|
||||
RUN drush core-status
|
||||
|
||||
#####################################
|
||||
# Node / NVM:
|
||||
|
Reference in New Issue
Block a user