File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ services:
1919 - INSTALL_BLACKFIRE=${INSTALL_BLACKFIRE}
2020 - INSTALL_SOAP=${WORKSPACE_INSTALL_SOAP}
2121 - INSTALL_MONGO=${WORKSPACE_INSTALL_MONGO}
22+ - INSTALL_PHPREDIS=${WORKSPACE_INSTALL_PHPREDIS}
2223 - INSTALL_MSSQL=${WORKSPACE_INSTALL_MSSQL}
2324 - INSTALL_NODE=${WORKSPACE_INSTALL_NODE}
2425 - INSTALL_YARN=${WORKSPACE_INSTALL_YARN}
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ PHP_INTERPRETER=php-fpm
3232WORKSPACE_INSTALL_XDEBUG=false
3333WORKSPACE_INSTALL_SOAP=false
3434WORKSPACE_INSTALL_MONGO=false
35+ WORKSPACE_INSTALL_PHPREDIS=false
3536WORKSPACE_INSTALL_MSSQL=false
3637WORKSPACE_INSTALL_NODE=false
3738WORKSPACE_INSTALL_YARN=false
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ RUN if [ ${INSTALL_XDEBUG} = false -a ${INSTALL_BLACKFIRE} = true ]; then \
8484ARG INSTALL_PHPREDIS=false
8585RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
8686 # Install Php Redis Extension
87- pecl install -o -f redis \
87+ printf "\n" | pecl install -o -f redis \
8888 && rm -rf /tmp/pear \
8989 && docker-php-ext-enable redis \
9090;fi
Original file line number Diff line number Diff line change @@ -186,11 +186,24 @@ ARG INSTALL_MONGO=false
186186ENV INSTALL_MONGO ${INSTALL_MONGO}
187187RUN if [ ${INSTALL_MONGO} = true ]; then \
188188 # Install the mongodb extension
189- pecl install mongodb && \
189+ pecl -q install mongodb && \
190190 echo "extension=mongodb.so" >> /etc/php/7.1/mods-available/mongodb.ini && \
191191 ln -s /etc/php/7.1/mods-available/mongodb.ini /etc/php/7.1/cli/conf.d/30-mongodb.ini \
192192;fi
193193
194+ #####################################
195+ # PHP REDIS EXTENSION FOR PHP 7
196+ #####################################
197+
198+ ARG INSTALL_PHPREDIS=false
199+ ENV INSTALL_PHPREDIS ${INSTALL_PHPREDIS}
200+ RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
201+ # Install Php Redis extension
202+ printf "\n" | pecl -q install -o -f redis && \
203+ echo "extension=redis.so" >> /etc/php/7.1/mods-available/redis.ini && \
204+ phpenmod redis \
205+ ;fi
206+
194207#####################################
195208# Drush:
196209#####################################
You can’t perform that action at this time.
0 commit comments