Browse Source

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

Tim Bracken 8 years ago
parent
commit
95ef5e1e70
3 changed files with 26 additions and 0 deletions
  1. 6 0
      php-fpm/Dockerfile-56
  2. 6 0
      php-fpm/Dockerfile-70
  3. 14 0
      workspace/Dockerfile

+ 6 - 0
php-fpm/Dockerfile-56

@@ -89,6 +89,12 @@ RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
     docker-php-ext-enable memcached \
 ;fi
 
+#####################################
+# Opcache:
+#####################################
+RUN docker-php-ext-install opcache
+RUN docker-php-ext-enable opcache
+
 
 #
 #--------------------------------------------------------------------------

+ 6 - 0
php-fpm/Dockerfile-70

@@ -100,6 +100,12 @@ RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
     && docker-php-ext-enable memcached \
 ;fi
 
+#####################################
+# Opcache:
+#####################################
+RUN docker-php-ext-install opcache
+RUN docker-php-ext-enable opcache
+
 
 #
 #--------------------------------------------------------------------------

+ 14 - 0
workspace/Dockerfile

@@ -97,6 +97,20 @@ RUN if [ ${COMPOSER_GLOBAL_INSTALL} = true ]; then \
     composer global install \
 ;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:
 #####################################