Skip to content

Commit 95ef5e1

Browse files
committed
Add Drush and Opcache to laradock because they are needed for drupal development.
1 parent c324114 commit 95ef5e1

3 files changed

Lines changed: 26 additions & 0 deletions

File tree

php-fpm/Dockerfile-56

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
8989
docker-php-ext-enable memcached \
9090
;fi
9191

92+
#####################################
93+
# Opcache:
94+
#####################################
95+
RUN docker-php-ext-install opcache
96+
RUN docker-php-ext-enable opcache
97+
9298

9399
#
94100
#--------------------------------------------------------------------------

php-fpm/Dockerfile-70

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,12 @@ RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
100100
&& docker-php-ext-enable memcached \
101101
;fi
102102

103+
#####################################
104+
# Opcache:
105+
#####################################
106+
RUN docker-php-ext-install opcache
107+
RUN docker-php-ext-enable opcache
108+
103109

104110
#
105111
#--------------------------------------------------------------------------

workspace/Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,20 @@ RUN if [ ${COMPOSER_GLOBAL_INSTALL} = true ]; then \
9797
composer global install \
9898
;fi
9999

100+
#####################################
101+
# Drush:
102+
#####################################
103+
ENV DRUSH_VERSION 8.1.2
104+
105+
# Install Drush 8 with the phar file.
106+
USER root
107+
RUN curl -fsSL -o /usr/local/bin/drush "https://github.com/drush-ops/drush/releases/download/$DRUSH_VERSION/drush.phar" && \
108+
chmod +x /usr/local/bin/drush
109+
110+
#Check if drush works for the laradock user
111+
USER laradock
112+
RUN drush core-status
113+
100114
#####################################
101115
# Node / NVM:
102116
#####################################

0 commit comments

Comments
 (0)