summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTilo Spannagel <development@tilosp.de>2019-10-27 14:15:51 +0100
committerGitHub <noreply@github.com>2019-10-27 14:15:51 +0100
commit8fac176f7417bec8a7066e5f2faa5b8fa66857b3 (patch)
treed2dc898af51bdf556b3ac70f12a009617b6b2ebd
parent2680fb27ab24e1e36172171c9d3a20a298ac413b (diff)
parent7eb00b62aab4e123eec0b0a2d213396fb87c97c8 (diff)
Merge pull request #863 from marcelklehr/master
Add gmp php extension
-rw-r--r--.examples/dockerfiles/full/apache/Dockerfile3
-rw-r--r--.examples/dockerfiles/full/fpm-alpine/Dockerfile2
-rw-r--r--.examples/dockerfiles/full/fpm/Dockerfile3
-rw-r--r--15.0/apache/Dockerfile4
-rw-r--r--15.0/fpm-alpine/Dockerfile2
-rw-r--r--15.0/fpm/Dockerfile4
-rw-r--r--16.0/apache/Dockerfile4
-rw-r--r--16.0/fpm-alpine/Dockerfile2
-rw-r--r--16.0/fpm/Dockerfile4
-rw-r--r--17.0/apache/Dockerfile4
-rw-r--r--17.0/fpm-alpine/Dockerfile2
-rw-r--r--17.0/fpm/Dockerfile4
-rw-r--r--Dockerfile-alpine.template2
-rw-r--r--Dockerfile-debian.template4
14 files changed, 36 insertions, 8 deletions
diff --git a/.examples/dockerfiles/full/apache/Dockerfile b/.examples/dockerfiles/full/apache/Dockerfile
index 9e600e76..bd759168 100644
--- a/.examples/dockerfiles/full/apache/Dockerfile
+++ b/.examples/dockerfiles/full/apache/Dockerfile
@@ -20,16 +20,13 @@ RUN set -ex; \
apt-get install -y --no-install-recommends \
libbz2-dev \
libc-client-dev \
- libgmp3-dev \
libkrb5-dev \
libsmbclient-dev \
; \
\
docker-php-ext-configure imap --with-kerberos --with-imap-ssl; \
- ln -s "/usr/include/$(dpkg-architecture --query DEB_BUILD_MULTIARCH)/gmp.h" /usr/include/gmp.h; \
docker-php-ext-install \
bz2 \
- gmp \
imap \
; \
pecl install smbclient; \
diff --git a/.examples/dockerfiles/full/fpm-alpine/Dockerfile b/.examples/dockerfiles/full/fpm-alpine/Dockerfile
index 37029c8e..bbc8b98e 100644
--- a/.examples/dockerfiles/full/fpm-alpine/Dockerfile
+++ b/.examples/dockerfiles/full/fpm-alpine/Dockerfile
@@ -19,13 +19,11 @@ RUN set -ex; \
libressl-dev \
samba-dev \
bzip2-dev \
- gmp-dev \
; \
\
docker-php-ext-configure imap --with-kerberos --with-imap-ssl; \
docker-php-ext-install \
bz2 \
- gmp \
imap \
; \
pecl install smbclient; \
diff --git a/.examples/dockerfiles/full/fpm/Dockerfile b/.examples/dockerfiles/full/fpm/Dockerfile
index 5172e3f2..0fa2ccbf 100644
--- a/.examples/dockerfiles/full/fpm/Dockerfile
+++ b/.examples/dockerfiles/full/fpm/Dockerfile
@@ -20,16 +20,13 @@ RUN set -ex; \
apt-get install -y --no-install-recommends \
libbz2-dev \
libc-client-dev \
- libgmp3-dev \
libkrb5-dev \
libsmbclient-dev \
; \
\
docker-php-ext-configure imap --with-kerberos --with-imap-ssl; \
- ln -s "/usr/include/$(dpkg-architecture --query DEB_BUILD_MULTIARCH)/gmp.h" /usr/include/gmp.h; \
docker-php-ext-install \
bz2 \
- gmp \
imap \
; \
pecl install smbclient; \
diff --git a/15.0/apache/Dockerfile b/15.0/apache/Dockerfile
index 15497499..8fc73525 100644
--- a/15.0/apache/Dockerfile
+++ b/15.0/apache/Dockerfile
@@ -37,10 +37,13 @@ RUN set -ex; \
libmagickwand-dev \
libzip-dev \
libwebp-dev \
+ libgmp-dev \
; \
\
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
+ if [ ! -e /usr/include/gmp.h ]; then ln -s /usr/include/$debMultiarch/gmp.h /usr/include/gmp.h; fi;\
docker-php-ext-configure gd --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr --with-webp-dir=/usr; \
+ docker-php-ext-configure gmp --with-gmp="/usr/include/$debMultiarch"; \
docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \
docker-php-ext-install -j "$(nproc)" \
exif \
@@ -52,6 +55,7 @@ RUN set -ex; \
pdo_mysql \
pdo_pgsql \
zip \
+ gmp \
; \
\
# pecl will claim success even if one install fails, so we need to perform each install separately
diff --git a/15.0/fpm-alpine/Dockerfile b/15.0/fpm-alpine/Dockerfile
index 39514528..ac482d65 100644
--- a/15.0/fpm-alpine/Dockerfile
+++ b/15.0/fpm-alpine/Dockerfile
@@ -32,6 +32,7 @@ RUN set -ex; \
postgresql-dev \
imagemagick-dev \
libwebp-dev \
+ gmp-dev \
; \
\
docker-php-ext-configure gd --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr --with-webp-dir=/usr; \
@@ -46,6 +47,7 @@ RUN set -ex; \
pdo_mysql \
pdo_pgsql \
zip \
+ gmp \
; \
\
# pecl will claim success even if one install fails, so we need to perform each install separately
diff --git a/15.0/fpm/Dockerfile b/15.0/fpm/Dockerfile
index e6ea5530..bf6ee156 100644
--- a/15.0/fpm/Dockerfile
+++ b/15.0/fpm/Dockerfile
@@ -37,10 +37,13 @@ RUN set -ex; \
libmagickwand-dev \
libzip-dev \
libwebp-dev \
+ libgmp-dev \
; \
\
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
+ if [ ! -e /usr/include/gmp.h ]; then ln -s /usr/include/$debMultiarch/gmp.h /usr/include/gmp.h; fi;\
docker-php-ext-configure gd --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr --with-webp-dir=/usr; \
+ docker-php-ext-configure gmp --with-gmp="/usr/include/$debMultiarch"; \
docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \
docker-php-ext-install -j "$(nproc)" \
exif \
@@ -52,6 +55,7 @@ RUN set -ex; \
pdo_mysql \
pdo_pgsql \
zip \
+ gmp \
; \
\
# pecl will claim success even if one install fails, so we need to perform each install separately
diff --git a/16.0/apache/Dockerfile b/16.0/apache/Dockerfile
index ea2cf105..f831e5a4 100644
--- a/16.0/apache/Dockerfile
+++ b/16.0/apache/Dockerfile
@@ -37,10 +37,13 @@ RUN set -ex; \
libmagickwand-dev \
libzip-dev \
libwebp-dev \
+ libgmp-dev \
; \
\
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
+ if [ ! -e /usr/include/gmp.h ]; then ln -s /usr/include/$debMultiarch/gmp.h /usr/include/gmp.h; fi;\
docker-php-ext-configure gd --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr --with-webp-dir=/usr; \
+ docker-php-ext-configure gmp --with-gmp="/usr/include/$debMultiarch"; \
docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \
docker-php-ext-install -j "$(nproc)" \
exif \
@@ -52,6 +55,7 @@ RUN set -ex; \
pdo_mysql \
pdo_pgsql \
zip \
+ gmp \
; \
\
# pecl will claim success even if one install fails, so we need to perform each install separately
diff --git a/16.0/fpm-alpine/Dockerfile b/16.0/fpm-alpine/Dockerfile
index 7eb2699c..45aee706 100644
--- a/16.0/fpm-alpine/Dockerfile
+++ b/16.0/fpm-alpine/Dockerfile
@@ -32,6 +32,7 @@ RUN set -ex; \
postgresql-dev \
imagemagick-dev \
libwebp-dev \
+ gmp-dev \
; \
\
docker-php-ext-configure gd --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr --with-webp-dir=/usr; \
@@ -46,6 +47,7 @@ RUN set -ex; \
pdo_mysql \
pdo_pgsql \
zip \
+ gmp \
; \
\
# pecl will claim success even if one install fails, so we need to perform each install separately
diff --git a/16.0/fpm/Dockerfile b/16.0/fpm/Dockerfile
index 7e56ee65..e3c5117f 100644
--- a/16.0/fpm/Dockerfile
+++ b/16.0/fpm/Dockerfile
@@ -37,10 +37,13 @@ RUN set -ex; \
libmagickwand-dev \
libzip-dev \
libwebp-dev \
+ libgmp-dev \
; \
\
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
+ if [ ! -e /usr/include/gmp.h ]; then ln -s /usr/include/$debMultiarch/gmp.h /usr/include/gmp.h; fi;\
docker-php-ext-configure gd --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr --with-webp-dir=/usr; \
+ docker-php-ext-configure gmp --with-gmp="/usr/include/$debMultiarch"; \
docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \
docker-php-ext-install -j "$(nproc)" \
exif \
@@ -52,6 +55,7 @@ RUN set -ex; \
pdo_mysql \
pdo_pgsql \
zip \
+ gmp \
; \
\
# pecl will claim success even if one install fails, so we need to perform each install separately
diff --git a/17.0/apache/Dockerfile b/17.0/apache/Dockerfile
index c2831d9e..8ebc1575 100644
--- a/17.0/apache/Dockerfile
+++ b/17.0/apache/Dockerfile
@@ -37,10 +37,13 @@ RUN set -ex; \
libmagickwand-dev \
libzip-dev \
libwebp-dev \
+ libgmp-dev \
; \
\
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
+ if [ ! -e /usr/include/gmp.h ]; then ln -s /usr/include/$debMultiarch/gmp.h /usr/include/gmp.h; fi;\
docker-php-ext-configure gd --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr --with-webp-dir=/usr; \
+ docker-php-ext-configure gmp --with-gmp="/usr/include/$debMultiarch"; \
docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \
docker-php-ext-install -j "$(nproc)" \
exif \
@@ -52,6 +55,7 @@ RUN set -ex; \
pdo_mysql \
pdo_pgsql \
zip \
+ gmp \
; \
\
# pecl will claim success even if one install fails, so we need to perform each install separately
diff --git a/17.0/fpm-alpine/Dockerfile b/17.0/fpm-alpine/Dockerfile
index 7dc6b1a3..21128c27 100644
--- a/17.0/fpm-alpine/Dockerfile
+++ b/17.0/fpm-alpine/Dockerfile
@@ -32,6 +32,7 @@ RUN set -ex; \
postgresql-dev \
imagemagick-dev \
libwebp-dev \
+ gmp-dev \
; \
\
docker-php-ext-configure gd --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr --with-webp-dir=/usr; \
@@ -46,6 +47,7 @@ RUN set -ex; \
pdo_mysql \
pdo_pgsql \
zip \
+ gmp \
; \
\
# pecl will claim success even if one install fails, so we need to perform each install separately
diff --git a/17.0/fpm/Dockerfile b/17.0/fpm/Dockerfile
index 9e7dec01..0000862e 100644
--- a/17.0/fpm/Dockerfile
+++ b/17.0/fpm/Dockerfile
@@ -37,10 +37,13 @@ RUN set -ex; \
libmagickwand-dev \
libzip-dev \
libwebp-dev \
+ libgmp-dev \
; \
\
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
+ if [ ! -e /usr/include/gmp.h ]; then ln -s /usr/include/$debMultiarch/gmp.h /usr/include/gmp.h; fi;\
docker-php-ext-configure gd --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr --with-webp-dir=/usr; \
+ docker-php-ext-configure gmp --with-gmp="/usr/include/$debMultiarch"; \
docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \
docker-php-ext-install -j "$(nproc)" \
exif \
@@ -52,6 +55,7 @@ RUN set -ex; \
pdo_mysql \
pdo_pgsql \
zip \
+ gmp \
; \
\
# pecl will claim success even if one install fails, so we need to perform each install separately
diff --git a/Dockerfile-alpine.template b/Dockerfile-alpine.template
index 065e5fe9..ab55a1fe 100644
--- a/Dockerfile-alpine.template
+++ b/Dockerfile-alpine.template
@@ -31,6 +31,7 @@ RUN set -ex; \
postgresql-dev \
imagemagick-dev \
libwebp-dev \
+ gmp-dev \
; \
\
docker-php-ext-configure gd --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr --with-webp-dir=/usr; \
@@ -45,6 +46,7 @@ RUN set -ex; \
pdo_mysql \
pdo_pgsql \
zip \
+ gmp \
; \
\
# pecl will claim success even if one install fails, so we need to perform each install separately
diff --git a/Dockerfile-debian.template b/Dockerfile-debian.template
index 642c4fdc..9345d2ef 100644
--- a/Dockerfile-debian.template
+++ b/Dockerfile-debian.template
@@ -36,10 +36,13 @@ RUN set -ex; \
libmagickwand-dev \
libzip-dev \
libwebp-dev \
+ libgmp-dev \
; \
\
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
+ if [ ! -e /usr/include/gmp.h ]; then ln -s /usr/include/$debMultiarch/gmp.h /usr/include/gmp.h; fi;\
docker-php-ext-configure gd --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr --with-webp-dir=/usr; \
+ docker-php-ext-configure gmp --with-gmp="/usr/include/$debMultiarch"; \
docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \
docker-php-ext-install -j "$(nproc)" \
exif \
@@ -51,6 +54,7 @@ RUN set -ex; \
pdo_mysql \
pdo_pgsql \
zip \
+ gmp \
; \
\
# pecl will claim success even if one install fails, so we need to perform each install separately