Merge pull request #2594 from bestlong/horizon-php-ext-imagick
Horizon support ImageMagick
This commit is contained in:
commit
d39f793f34
|
@ -310,6 +310,7 @@ services:
|
||||||
- INSTALL_BZ2=${LARAVEL_HORIZON_INSTALL_BZ2}
|
- INSTALL_BZ2=${LARAVEL_HORIZON_INSTALL_BZ2}
|
||||||
- INSTALL_GD=${LARAVEL_HORIZON_INSTALL_GD}
|
- INSTALL_GD=${LARAVEL_HORIZON_INSTALL_GD}
|
||||||
- INSTALL_GMP=${LARAVEL_HORIZON_INSTALL_GMP}
|
- INSTALL_GMP=${LARAVEL_HORIZON_INSTALL_GMP}
|
||||||
|
- INSTALL_IMAGEMAGICK=${LARAVEL_HORIZON_INSTALL_IMAGEMAGICK}
|
||||||
- INSTALL_PGSQL=${PHP_FPM_INSTALL_PGSQL}
|
- INSTALL_PGSQL=${PHP_FPM_INSTALL_PGSQL}
|
||||||
- INSTALL_ZIP_ARCHIVE=${LARAVEL_HORIZON_INSTALL_ZIP_ARCHIVE}
|
- INSTALL_ZIP_ARCHIVE=${LARAVEL_HORIZON_INSTALL_ZIP_ARCHIVE}
|
||||||
- INSTALL_BCMATH=${PHP_FPM_INSTALL_BCMATH}
|
- INSTALL_BCMATH=${PHP_FPM_INSTALL_BCMATH}
|
||||||
|
|
|
@ -273,6 +273,7 @@ NGINX_SSL_PATH=./nginx/ssl/
|
||||||
LARAVEL_HORIZON_INSTALL_BZ2=false
|
LARAVEL_HORIZON_INSTALL_BZ2=false
|
||||||
LARAVEL_HORIZON_INSTALL_GD=false
|
LARAVEL_HORIZON_INSTALL_GD=false
|
||||||
LARAVEL_HORIZON_INSTALL_GMP=false
|
LARAVEL_HORIZON_INSTALL_GMP=false
|
||||||
|
LARAVEL_HORIZON_INSTALL_IMAGEMAGICK=false
|
||||||
LARAVEL_HORIZON_INSTALL_SOCKETS=false
|
LARAVEL_HORIZON_INSTALL_SOCKETS=false
|
||||||
LARAVEL_HORIZON_INSTALL_YAML=false
|
LARAVEL_HORIZON_INSTALL_YAML=false
|
||||||
LARAVEL_HORIZON_INSTALL_ZIP_ARCHIVE=false
|
LARAVEL_HORIZON_INSTALL_ZIP_ARCHIVE=false
|
||||||
|
|
|
@ -67,6 +67,16 @@ RUN if [ ${INSTALL_GMP} = true ]; then \
|
||||||
docker-php-ext-install gmp \
|
docker-php-ext-install gmp \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
#Install ImageMagick package:
|
||||||
|
ARG INSTALL_IMAGEMAGICK=false
|
||||||
|
RUN set -eux; \
|
||||||
|
if [ ${INSTALL_IMAGEMAGICK} = true ]; then \
|
||||||
|
apk add --update --no-cache imagemagick-dev; \
|
||||||
|
pecl install imagick; \
|
||||||
|
docker-php-ext-enable imagick; \
|
||||||
|
php -m | grep -q 'imagick'; \
|
||||||
|
fi
|
||||||
|
|
||||||
#Install BCMath package:
|
#Install BCMath package:
|
||||||
ARG INSTALL_BCMATH=false
|
ARG INSTALL_BCMATH=false
|
||||||
RUN if [ ${INSTALL_BCMATH} = true ]; then \
|
RUN if [ ${INSTALL_BCMATH} = true ]; then \
|
||||||
|
|
Loading…
Reference in New Issue