From 059468176090e2cf4d832256545cde7314090754 Mon Sep 17 00:00:00 2001 From: Winfried Date: Tue, 11 Apr 2017 23:10:41 +0200 Subject: [PATCH] Fixing the php ext already loaded warnings Example: ``` warning: exif (exif.so) is already loaded! ``` --- php-fpm/Dockerfile-56 | 6 ++---- php-fpm/Dockerfile-70 | 6 ++---- php-fpm/Dockerfile-71 | 7 +++---- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/php-fpm/Dockerfile-56 b/php-fpm/Dockerfile-56 index 9519b7b6..dcc1e47f 100644 --- a/php-fpm/Dockerfile-56 +++ b/php-fpm/Dockerfile-56 @@ -114,8 +114,7 @@ RUN if [ ${INSTALL_MEMCACHED} = true ]; then \ ARG INSTALL_EXIF=false RUN if [ ${INSTALL_EXIF} = true ]; then \ # Enable Exif PHP extentions requirements - docker-php-ext-install exif && \ - docker-php-ext-enable exif \ + docker-php-ext-install exif \ ;fi ##################################### @@ -147,8 +146,7 @@ RUN if [ ${INSTALL_AEROSPIKE_EXTENSION} = true ]; then \ ARG INSTALL_OPCACHE=false RUN if [ ${INSTALL_OPCACHE} = true ]; then \ - docker-php-ext-install opcache && \ - docker-php-ext-enable opcache \ + docker-php-ext-install opcache \ ;fi # Copy opcache configration diff --git a/php-fpm/Dockerfile-70 b/php-fpm/Dockerfile-70 index e0895fa0..57f753cd 100644 --- a/php-fpm/Dockerfile-70 +++ b/php-fpm/Dockerfile-70 @@ -135,8 +135,7 @@ RUN if [ ${INSTALL_MEMCACHED} = true ]; then \ ARG INSTALL_EXIF=false RUN if [ ${INSTALL_EXIF} = true ]; then \ # Enable Exif PHP extentions requirements - docker-php-ext-install exif && \ - docker-php-ext-enable exif \ + docker-php-ext-install exif \ ;fi @@ -168,8 +167,7 @@ RUN if [ ${INSTALL_AEROSPIKE_EXTENSION} = true ]; then \ ##################################### ARG INSTALL_OPCACHE=false RUN if [ ${INSTALL_OPCACHE} = true ]; then \ - docker-php-ext-install opcache && \ - docker-php-ext-enable opcache \ + docker-php-ext-install opcache \ ;fi # Copy opcache configration diff --git a/php-fpm/Dockerfile-71 b/php-fpm/Dockerfile-71 index 96df3890..ff10de8a 100644 --- a/php-fpm/Dockerfile-71 +++ b/php-fpm/Dockerfile-71 @@ -113,8 +113,7 @@ RUN if [ ${INSTALL_MEMCACHED} = true ]; then \ ARG INSTALL_EXIF=false RUN if [ ${INSTALL_EXIF} = true ]; then \ # Enable Exif PHP extentions requirements - docker-php-ext-install exif && \ - docker-php-ext-enable exif \ + docker-php-ext-install exif \ ;fi ##################################### @@ -137,6 +136,7 @@ RUN if [ ${INSTALL_AEROSPIKE_EXTENSION} = true ]; then \ && make install \ ) \ && rm /tmp/aerospike-client-php.tar.gz \ + && docker-php-ext-enable aerospike \ ;fi ##################################### @@ -144,8 +144,7 @@ RUN if [ ${INSTALL_AEROSPIKE_EXTENSION} = true ]; then \ ##################################### ARG INSTALL_OPCACHE=false RUN if [ ${INSTALL_OPCACHE} = true ]; then \ - docker-php-ext-install opcache && \ - docker-php-ext-enable opcache \ + docker-php-ext-install opcache \ ;fi # Copy opcache configration