From d8d636736e712b4c298c109d657ae051eecc9c5e Mon Sep 17 00:00:00 2001 From: "Phil E. Taylor" Date: Tue, 30 Jun 2020 12:37:20 +0100 Subject: [PATCH] add GMP and MCrypt to builds --- php7.2/apache/Dockerfile | 5 +++++ php7.2/fpm-alpine/Dockerfile | 5 +++++ php7.2/fpm/Dockerfile | 5 +++++ php7.3/apache/Dockerfile | 5 +++++ php7.3/fpm-alpine/Dockerfile | 5 +++++ php7.3/fpm/Dockerfile | 5 +++++ php7.4/apache/Dockerfile | 5 +++++ php7.4/fpm-alpine/Dockerfile | 5 +++++ php7.4/fpm/Dockerfile | 5 +++++ 9 files changed, 45 insertions(+) diff --git a/php7.2/apache/Dockerfile b/php7.2/apache/Dockerfile index 408f73a..ef1416b 100644 --- a/php7.2/apache/Dockerfile +++ b/php7.2/apache/Dockerfile @@ -20,6 +20,8 @@ RUN set -ex; \ libmemcached-dev \ libpng-dev \ libpq-dev \ + libgmp-dev \ + libmcrypt-dev \ ; \ \ docker-php-ext-configure gd --with-jpeg-dir=/usr --with-png-dir=/usr; \ @@ -34,17 +36,20 @@ RUN set -ex; \ pdo_pgsql \ pgsql \ zip \ + gmp \ ; \ \ # pecl will claim success even if one install fails, so we need to perform each install separately pecl install APCu-5.1.18; \ pecl install memcached-3.1.5; \ pecl install redis-4.3.0; \ + pecl install mcrypt-1.0.3; \ \ docker-php-ext-enable \ apcu \ memcached \ redis \ + mcrypt \ ; \ \ # reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies diff --git a/php7.2/fpm-alpine/Dockerfile b/php7.2/fpm-alpine/Dockerfile index 36666d4..9e5bf66 100644 --- a/php7.2/fpm-alpine/Dockerfile +++ b/php7.2/fpm-alpine/Dockerfile @@ -21,6 +21,8 @@ RUN set -ex; \ openldap-dev \ pcre-dev \ postgresql-dev \ + libgmp-dev \ + libmcrypt-dev \ ; \ \ docker-php-ext-configure gd --with-jpeg-dir=/usr --with-png-dir=/usr; \ @@ -34,17 +36,20 @@ RUN set -ex; \ pdo_pgsql \ pgsql \ zip \ + gmp \ ; \ \ # pecl will claim success even if one install fails, so we need to perform each install separately pecl install APCu-5.1.18; \ pecl install memcached-3.1.5; \ pecl install redis-4.3.0; \ + pecl install mcrypt-1.0.3; \ \ docker-php-ext-enable \ apcu \ memcached \ redis \ + mcrypt \ ; \ \ runDeps="$( \ diff --git a/php7.2/fpm/Dockerfile b/php7.2/fpm/Dockerfile index 0d5ff90..d12e4a8 100644 --- a/php7.2/fpm/Dockerfile +++ b/php7.2/fpm/Dockerfile @@ -17,6 +17,8 @@ RUN set -ex; \ libmemcached-dev \ libpng-dev \ libpq-dev \ + libgmp-dev \ + libmcrypt-dev \ ; \ \ docker-php-ext-configure gd --with-jpeg-dir=/usr --with-png-dir=/usr; \ @@ -31,17 +33,20 @@ RUN set -ex; \ pdo_pgsql \ pgsql \ zip \ + gmp \ ; \ \ # pecl will claim success even if one install fails, so we need to perform each install separately pecl install APCu-5.1.18; \ pecl install memcached-3.1.5; \ pecl install redis-4.3.0; \ + pecl install mcrypt-1.0.3; \ \ docker-php-ext-enable \ apcu \ memcached \ redis \ + mcrypt \ ; \ \ # reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies diff --git a/php7.3/apache/Dockerfile b/php7.3/apache/Dockerfile index 1ac1d06..af37818 100644 --- a/php7.3/apache/Dockerfile +++ b/php7.3/apache/Dockerfile @@ -21,6 +21,8 @@ RUN set -ex; \ libpng-dev \ libpq-dev \ libzip-dev \ + libgmp-dev \ + libmcrypt-dev \ ; \ \ docker-php-ext-configure gd --with-jpeg-dir=/usr --with-png-dir=/usr; \ @@ -35,17 +37,20 @@ RUN set -ex; \ pdo_pgsql \ pgsql \ zip \ + gmp \ ; \ \ # pecl will claim success even if one install fails, so we need to perform each install separately pecl install APCu-5.1.18; \ pecl install memcached-3.1.5; \ pecl install redis-4.3.0; \ + pecl install mcrypt-1.0.3; \ \ docker-php-ext-enable \ apcu \ memcached \ redis \ + mcrypt \ ; \ \ # reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies diff --git a/php7.3/fpm-alpine/Dockerfile b/php7.3/fpm-alpine/Dockerfile index 804d5ee..b3c3de4 100644 --- a/php7.3/fpm-alpine/Dockerfile +++ b/php7.3/fpm-alpine/Dockerfile @@ -22,6 +22,8 @@ RUN set -ex; \ openldap-dev \ pcre-dev \ postgresql-dev \ + libgmp-dev \ + libmcrypt-dev \ ; \ \ docker-php-ext-configure gd --with-jpeg-dir=/usr --with-png-dir=/usr; \ @@ -35,17 +37,20 @@ RUN set -ex; \ pdo_pgsql \ pgsql \ zip \ + gmp \ ; \ \ # pecl will claim success even if one install fails, so we need to perform each install separately pecl install APCu-5.1.18; \ pecl install memcached-3.1.5; \ pecl install redis-4.3.0; \ + pecl install mcrypt-1.0.3; \ \ docker-php-ext-enable \ apcu \ memcached \ redis \ + mcrypt \ ; \ \ runDeps="$( \ diff --git a/php7.3/fpm/Dockerfile b/php7.3/fpm/Dockerfile index 870ddf3..237ae0a 100644 --- a/php7.3/fpm/Dockerfile +++ b/php7.3/fpm/Dockerfile @@ -18,6 +18,8 @@ RUN set -ex; \ libpng-dev \ libpq-dev \ libzip-dev \ + libgmp-dev \ + libmcrypt-dev \ ; \ \ docker-php-ext-configure gd --with-jpeg-dir=/usr --with-png-dir=/usr; \ @@ -32,17 +34,20 @@ RUN set -ex; \ pdo_pgsql \ pgsql \ zip \ + gmp \ ; \ \ # pecl will claim success even if one install fails, so we need to perform each install separately pecl install APCu-5.1.18; \ pecl install memcached-3.1.5; \ pecl install redis-4.3.0; \ + pecl install mcrypt-1.0.3; \ \ docker-php-ext-enable \ apcu \ memcached \ redis \ + mcrypt \ ; \ \ # reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies diff --git a/php7.4/apache/Dockerfile b/php7.4/apache/Dockerfile index d71a07b..f23af93 100644 --- a/php7.4/apache/Dockerfile +++ b/php7.4/apache/Dockerfile @@ -21,6 +21,8 @@ RUN set -ex; \ libpng-dev \ libpq-dev \ libzip-dev \ + libgmp-dev \ + libmcrypt-dev \ ; \ \ docker-php-ext-configure gd --with-jpeg; \ @@ -35,17 +37,20 @@ RUN set -ex; \ pdo_pgsql \ pgsql \ zip \ + gmp \ ; \ \ # pecl will claim success even if one install fails, so we need to perform each install separately pecl install APCu-5.1.18; \ pecl install memcached-3.1.5; \ pecl install redis-4.3.0; \ + pecl install mcrypt-1.0.3; \ \ docker-php-ext-enable \ apcu \ memcached \ redis \ + mcrypt \ ; \ \ # reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies diff --git a/php7.4/fpm-alpine/Dockerfile b/php7.4/fpm-alpine/Dockerfile index aebf922..b878cf5 100644 --- a/php7.4/fpm-alpine/Dockerfile +++ b/php7.4/fpm-alpine/Dockerfile @@ -22,6 +22,8 @@ RUN set -ex; \ openldap-dev \ pcre-dev \ postgresql-dev \ + libgmp-dev \ + libmcrypt-dev \ ; \ \ docker-php-ext-configure gd --with-jpeg; \ @@ -35,17 +37,20 @@ RUN set -ex; \ pdo_pgsql \ pgsql \ zip \ + gmp \ ; \ \ # pecl will claim success even if one install fails, so we need to perform each install separately pecl install APCu-5.1.18; \ pecl install memcached-3.1.5; \ pecl install redis-4.3.0; \ + pecl install mcrypt-1.0.3; \ \ docker-php-ext-enable \ apcu \ memcached \ redis \ + mcrypt \ ; \ \ runDeps="$( \ diff --git a/php7.4/fpm/Dockerfile b/php7.4/fpm/Dockerfile index bf8449a..c43ef6c 100644 --- a/php7.4/fpm/Dockerfile +++ b/php7.4/fpm/Dockerfile @@ -18,6 +18,8 @@ RUN set -ex; \ libpng-dev \ libpq-dev \ libzip-dev \ + libgmp-dev \ + libmcrypt-dev \ ; \ \ docker-php-ext-configure gd --with-jpeg; \ @@ -32,17 +34,20 @@ RUN set -ex; \ pdo_pgsql \ pgsql \ zip \ + gmp \ ; \ \ # pecl will claim success even if one install fails, so we need to perform each install separately pecl install APCu-5.1.18; \ pecl install memcached-3.1.5; \ pecl install redis-4.3.0; \ + pecl install mcrypt-1.0.3; \ \ docker-php-ext-enable \ apcu \ memcached \ redis \ + mcrypt \ ; \ \ # reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies