From 1fdf800988af6365a62c32e291cd54db9862888b Mon Sep 17 00:00:00 2001 From: Lialosiu Date: Sun, 14 Aug 2016 15:53:08 +0800 Subject: [PATCH] add options INSTALL_ZIP_ARCHIVE to php-fpm --- docker-compose.yml | 1 + php-fpm/Dockerfile-56 | 13 +++++++++++++ php-fpm/Dockerfile-70 | 13 +++++++++++++ php-fpm/laravel.ini | 1 + 4 files changed, 28 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 2f9de805..a2313182 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -26,6 +26,7 @@ services: args: - INSTALL_MONGO=false - INSTALL_XDEBUG=false + - INSTALL_ZIP_ARCHIVE=false dockerfile: Dockerfile-70 volumes_from: - volumes_source diff --git a/php-fpm/Dockerfile-56 b/php-fpm/Dockerfile-56 index 08c30be1..fd881705 100644 --- a/php-fpm/Dockerfile-56 +++ b/php-fpm/Dockerfile-56 @@ -35,6 +35,7 @@ MAINTAINER Mahmoud Zalt # # - INSTALL_XDEBUG= false # - INSTALL_MONGO= false +# - INSTALL_ZIP_ARCHIVE= false # ##################################### @@ -60,6 +61,18 @@ RUN if [ ${INSTALL_MONGO} = true ]; then \ pecl install mongodb \ ;fi +##################################### +# ZipArchive: +##################################### + +ARG INSTALL_ZIP_ARCHIVE=true +ENV INSTALL_ZIP_ARCHIVE ${INSTALL_ZIP_ARCHIVE} +RUN if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \ + # Install the zip extention + pecl install zip \ +;fi + + # #-------------------------------------------------------------------------- # Final Touch diff --git a/php-fpm/Dockerfile-70 b/php-fpm/Dockerfile-70 index ff7dbb57..ed28119f 100644 --- a/php-fpm/Dockerfile-70 +++ b/php-fpm/Dockerfile-70 @@ -35,6 +35,7 @@ MAINTAINER Mahmoud Zalt # # - INSTALL_XDEBUG= false # - INSTALL_MONGO= false +# - INSTALL_ZIP_ARCHIVE= false # ##################################### @@ -60,6 +61,18 @@ RUN if [ ${INSTALL_MONGO} = true ]; then \ pecl install mongodb \ ;fi +##################################### +# ZipArchive: +##################################### + +ARG INSTALL_ZIP_ARCHIVE=true +ENV INSTALL_ZIP_ARCHIVE ${INSTALL_ZIP_ARCHIVE} +RUN if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \ + # Install the zip extention + pecl install zip \ +;fi + + # #-------------------------------------------------------------------------- # Final Touch diff --git a/php-fpm/laravel.ini b/php-fpm/laravel.ini index 186c8e1c..dea3703b 100644 --- a/php-fpm/laravel.ini +++ b/php-fpm/laravel.ini @@ -2,6 +2,7 @@ date.timezone=UTC display_errors=Off log_errors=On extension=mongodb.so +extension=zip.so ; Maximum amount of memory a script may consume (128MB) ; http://php.net/memory-limit