Merge pull request #232 from tianissimo/dev-memcached-ext

Added PHP Memcached extension installation for PHP 5.6
This commit is contained in:
Mahmoud Zalt 2016-08-16 13:33:46 +03:00 committed by GitHub
commit eb81dfc1be
2 changed files with 14 additions and 0 deletions

View File

@ -27,6 +27,7 @@ services:
- INSTALL_MONGO=false - INSTALL_MONGO=false
- INSTALL_XDEBUG=false - INSTALL_XDEBUG=false
- INSTALL_ZIP_ARCHIVE=false - INSTALL_ZIP_ARCHIVE=false
- INSTALL_MEMCACHED=false
dockerfile: Dockerfile-70 dockerfile: Dockerfile-70
volumes_from: volumes_from:
- volumes_source - volumes_source

View File

@ -36,6 +36,7 @@ MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
# - INSTALL_XDEBUG= false # - INSTALL_XDEBUG= false
# - INSTALL_MONGO= false # - INSTALL_MONGO= false
# - INSTALL_ZIP_ARCHIVE= false # - INSTALL_ZIP_ARCHIVE= false
# - INSTALL_MEMCACHED= false
# #
##################################### #####################################
@ -74,6 +75,18 @@ RUN if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
docker-php-ext-enable zip \ docker-php-ext-enable zip \
;fi ;fi
#####################################
# PHP Memcached:
#####################################
ARG INSTALL_MEMCACHED=true
ENV INSTALL_MEMCACHED ${INSTALL_MEMCACHED}
RUN if [ ${INSTALL_MEMCACHED} = true ]; then \
# Install the php memcached extension
pecl install memcached && \
docker-php-ext-enable memcached \
;fi
# #
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------