Commit 95ef5e1e authored by Tim Bracken's avatar Tim Bracken

Add Drush and Opcache to laradock because they are needed for drupal development.

parent c324114b
...@@ -89,6 +89,12 @@ RUN if [ ${INSTALL_MEMCACHED} = true ]; then \ ...@@ -89,6 +89,12 @@ RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
docker-php-ext-enable memcached \ docker-php-ext-enable memcached \
;fi ;fi
#####################################
# Opcache:
#####################################
RUN docker-php-ext-install opcache
RUN docker-php-ext-enable opcache
# #
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
......
...@@ -100,6 +100,12 @@ RUN if [ ${INSTALL_MEMCACHED} = true ]; then \ ...@@ -100,6 +100,12 @@ RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
&& docker-php-ext-enable memcached \ && docker-php-ext-enable memcached \
;fi ;fi
#####################################
# Opcache:
#####################################
RUN docker-php-ext-install opcache
RUN docker-php-ext-enable opcache
# #
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
......
...@@ -97,6 +97,20 @@ RUN if [ ${COMPOSER_GLOBAL_INSTALL} = true ]; then \ ...@@ -97,6 +97,20 @@ RUN if [ ${COMPOSER_GLOBAL_INSTALL} = true ]; then \
composer global install \ composer global install \
;fi ;fi
#####################################
# 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
#Check if drush works for the laradock user
USER laradock
RUN drush core-status
##################################### #####################################
# Node / NVM: # Node / NVM:
##################################### #####################################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment