From a6e04aa6592fae11e948622014914f76dcdef9cd Mon Sep 17 00:00:00 2001 From: Suteepat Damrongyingsupab Date: Tue, 16 Aug 2016 16:31:52 +0700 Subject: [PATCH] Added PHP Memcached extension installation for PHP 5.6 --- docker-compose.yml | 1 + php-fpm/Dockerfile-56 | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index a231318..7e8cc8f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 diff --git a/php-fpm/Dockerfile-56 b/php-fpm/Dockerfile-56 index 3ac78e6..876f178 100644 --- a/php-fpm/Dockerfile-56 +++ b/php-fpm/Dockerfile-56 @@ -36,6 +36,7 @@ MAINTAINER Mahmoud Zalt # - 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 + # #--------------------------------------------------------------------------