From 3b219d2974b8c2c9c52f597b949c366266520f5d Mon Sep 17 00:00:00 2001 From: Sven Slijkoord Date: Tue, 13 Feb 2018 19:15:49 +0100 Subject: [PATCH 1/5] Added env entry PHP_FPM_INSTALL_IMAP --- env-example | 1 + 1 file changed, 1 insertion(+) diff --git a/env-example b/env-example index c3d103d..a37ada0 100644 --- a/env-example +++ b/env-example @@ -98,6 +98,7 @@ WORKSPACE_SSH_PORT=2222 ### PHP_FPM ############################################################################################################ PHP_FPM_INSTALL_XDEBUG=false +PHP_FPM_INSTALL_IMAP=false PHP_FPM_INSTALL_MONGO=false PHP_FPM_INSTALL_AMQP=false PHP_FPM_INSTALL_MSSQL=false From 2ca9d3c5c679ee86b48e146054b43abeac53fff8 Mon Sep 17 00:00:00 2001 From: Sven Slijkoord Date: Tue, 13 Feb 2018 19:17:31 +0100 Subject: [PATCH 2/5] Update Dockerfile-71 --- php-fpm/Dockerfile-71 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/php-fpm/Dockerfile-71 b/php-fpm/Dockerfile-71 index 7e7fb9d..7507590 100644 --- a/php-fpm/Dockerfile-71 +++ b/php-fpm/Dockerfile-71 @@ -360,6 +360,19 @@ RUN if [ ${INSTALL_IMAGEMAGICK} = true ]; then \ docker-php-ext-enable imagick \ ;fi +##################################### +# IMAP: +##################################### +ARG INSTALL_IMAP=false +ENV INSTALL_IMAP ${INSTALL_IMAP} +RUN if [ ${INSTALL_IMAP} = true ]; then \ + apt-get update && \ + apt-get install -y libc-client-dev libkrb5-dev && \ + rm -r /var/lib/apt/lists/* && \ + docker-php-ext-configure imap --with-kerberos --with-imap-ssl && \ + docker-php-ext-install imap \ +;fi + # #-------------------------------------------------------------------------- # Final Touch From 48de39b1a1dc78a1684aaec07515adcaaa5020f6 Mon Sep 17 00:00:00 2001 From: Sven Slijkoord Date: Tue, 13 Feb 2018 19:18:07 +0100 Subject: [PATCH 3/5] Update Dockerfile-70 --- php-fpm/Dockerfile-70 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/php-fpm/Dockerfile-70 b/php-fpm/Dockerfile-70 index 6566d83..e2cf9a4 100644 --- a/php-fpm/Dockerfile-70 +++ b/php-fpm/Dockerfile-70 @@ -353,6 +353,19 @@ RUN if [ ${INSTALL_IMAGEMAGICK} = true ]; then \ docker-php-ext-enable imagick \ ;fi +##################################### +# IMAP: +##################################### +ARG INSTALL_IMAP=false +ENV INSTALL_IMAP ${INSTALL_IMAP} +RUN if [ ${INSTALL_IMAP} = true ]; then \ + apt-get update && \ + apt-get install -y libc-client-dev libkrb5-dev && \ + rm -r /var/lib/apt/lists/* && \ + docker-php-ext-configure imap --with-kerberos --with-imap-ssl && \ + docker-php-ext-install imap \ +;fi + # #-------------------------------------------------------------------------- # Final Touch From 03c76110107b02cd316d4d2ae47ab9b9e86e83f7 Mon Sep 17 00:00:00 2001 From: Sven Slijkoord Date: Tue, 13 Feb 2018 19:18:22 +0100 Subject: [PATCH 4/5] Update Dockerfile-56 --- php-fpm/Dockerfile-56 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/php-fpm/Dockerfile-56 b/php-fpm/Dockerfile-56 index 89cdb62..c046046 100644 --- a/php-fpm/Dockerfile-56 +++ b/php-fpm/Dockerfile-56 @@ -329,6 +329,19 @@ RUN if [ ${INSTALL_IMAGEMAGICK} = true ]; then \ docker-php-ext-enable imagick \ ;fi +##################################### +# IMAP: +##################################### +ARG INSTALL_IMAP=false +ENV INSTALL_IMAP ${INSTALL_IMAP} +RUN if [ ${INSTALL_IMAP} = true ]; then \ + apt-get update && \ + apt-get install -y libc-client-dev libkrb5-dev && \ + rm -r /var/lib/apt/lists/* && \ + docker-php-ext-configure imap --with-kerberos --with-imap-ssl && \ + docker-php-ext-install imap \ +;fi + # #-------------------------------------------------------------------------- # Final Touch From 61d3874736bebb11c19ae5219af0e919cc6bdf34 Mon Sep 17 00:00:00 2001 From: Sven Slijkoord Date: Tue, 13 Feb 2018 19:19:07 +0100 Subject: [PATCH 5/5] Update docker-compose.yml --- docker-compose.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-compose.yml b/docker-compose.yml index d2fb4ae..03418aa 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -72,6 +72,7 @@ services: - INSTALL_XDEBUG=${PHP_FPM_INSTALL_XDEBUG} - INSTALL_BLACKFIRE=${INSTALL_BLACKFIRE} - INSTALL_SOAP=${PHP_FPM_INSTALL_SOAP} + - INSTALL_IMAP=${PHP_FPM_INSTALL_IMAP} - INSTALL_MONGO=${PHP_FPM_INSTALL_MONGO} - INSTALL_AMQP=${PHP_FPM_INSTALL_AMQP} - INSTALL_MSSQL=${PHP_FPM_INSTALL_MSSQL}