Merge pull request #232 from tianissimo/dev-memcached-ext
Added PHP Memcached extension installation for PHP 5.6
This commit is contained in:
commit
eb81dfc1be
@ -27,6 +27,7 @@ services:
|
||||
- INSTALL_MONGO=false
|
||||
- INSTALL_XDEBUG=false
|
||||
- INSTALL_ZIP_ARCHIVE=false
|
||||
- INSTALL_MEMCACHED=false
|
||||
dockerfile: Dockerfile-70
|
||||
volumes_from:
|
||||
- volumes_source
|
||||
|
@ -36,6 +36,7 @@ MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
||||
# - INSTALL_XDEBUG= false
|
||||
# - INSTALL_MONGO= false
|
||||
# - INSTALL_ZIP_ARCHIVE= false
|
||||
# - INSTALL_MEMCACHED= false
|
||||
#
|
||||
|
||||
#####################################
|
||||
@ -74,6 +75,18 @@ RUN if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
|
||||
docker-php-ext-enable zip \
|
||||
;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
|
||||
|
||||
|
||||
#
|
||||
#--------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user