From 198c3906b28454f4257879a4bd164afccd22ea3c Mon Sep 17 00:00:00 2001 From: desaroger Date: Sat, 17 Feb 2018 09:50:16 +0100 Subject: [PATCH] Fix libgmp not locating gmp.h file --- php-fpm/Dockerfile-56 | 5 +++-- travis-build.sh | 3 +-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/php-fpm/Dockerfile-56 b/php-fpm/Dockerfile-56 index 3a55f1e..8921b0f 100644 --- a/php-fpm/Dockerfile-56 +++ b/php-fpm/Dockerfile-56 @@ -177,7 +177,8 @@ ARG INSTALL_GMP=false RUN if [ ${INSTALL_GMP} = true ]; then \ # Install the GMP extension apt-get update -yqq && \ - apt-get install -y libgmp3-dev && \ + apt-get install -y libgmp-dev && \ + ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h && \ docker-php-ext-install gmp \ ;fi @@ -324,7 +325,7 @@ ARG INSTALL_IMAGEMAGICK=false ENV INSTALL_IMAGEMAGICK ${INSTALL_IMAGEMAGICK} RUN if [ ${INSTALL_IMAGEMAGICK} = true ]; then \ apt-get update -y && \ - apt-get install -y libmagickwand-dev imagemagick && \ + apt-get install -y libmagickwand-dev imagemagick && \ pecl install imagick && \ docker-php-ext-enable imagick \ ;fi diff --git a/travis-build.sh b/travis-build.sh index 8613f9c..c72f51d 100755 --- a/travis-build.sh +++ b/travis-build.sh @@ -13,8 +13,7 @@ env | sort if [ -n "${PHP_VERSION}" ]; then cp env-example .env sed -i -- "s/PHP_VERSION=.*/PHP_VERSION=${PHP_VERSION}/g" .env - sed -i -- 's/=false/=false/g' .env - sed -i -- 's/=true/=false/g' .env + sed -i -- 's/=false/=true/g' .env cat .env docker-compose build ${BUILD_SERVICE} docker images