Skip to content

Commit

Permalink
Fix libgmp not locating gmp.h file
Browse files Browse the repository at this point in the history
  • Loading branch information
desaroger committed Feb 17, 2018
1 parent 9bd34ed commit 198c390
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions php-fpm/Dockerfile-56
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions travis-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 198c390

Please sign in to comment.