From 6b6e2d5f86f89acfbc2c9ee50b7d9d54af1b875f Mon Sep 17 00:00:00 2001 From: Douglas Black Date: Tue, 24 Apr 2018 10:25:16 -0400 Subject: [PATCH] Adding pcntl to php-fpm, php-worker, addresses #1419 --- env-example | 1 + php-fpm/Dockerfile | 10 ++++++++++ php-worker/Dockerfile | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/env-example b/env-example index 87f4cefe..ce76c20f 100644 --- a/env-example +++ b/env-example @@ -138,6 +138,7 @@ PHP_FPM_INSTALL_GHOSTSCRIPT=false PHP_FPM_INSTALL_LDAP=false PHP_FPM_INSTALL_SWOOLE=false PHP_FPM_INSTALL_PG_CLIENT=false +PHP_FPM_INSTALL_PCNTL=false ### PHP_WORKER ############################################ diff --git a/php-fpm/Dockerfile b/php-fpm/Dockerfile index c062f424..fb867f56 100644 --- a/php-fpm/Dockerfile +++ b/php-fpm/Dockerfile @@ -168,6 +168,16 @@ RUN if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \ docker-php-ext-install zip \ ;fi +########################################################################### +# pcntl +########################################################################### + +ARG INSTALL_PCNTL=false +RUN if [ ${INSTALL_PCNTL} = true]; then \ + # Installs pcntl, helpful for running Horizon + docker-php-ext-install pcntl \ +;fi + ########################################################################### # bcmath: ########################################################################### diff --git a/php-worker/Dockerfile b/php-worker/Dockerfile index a157b021..158a1664 100644 --- a/php-worker/Dockerfile +++ b/php-worker/Dockerfile @@ -22,7 +22,7 @@ RUN apk --update add wget \ libgsasl-dev \ supervisor -RUN docker-php-ext-install mysqli mbstring pdo pdo_mysql tokenizer xml +RUN docker-php-ext-install mysqli mbstring pdo pdo_mysql tokenizer xml pcntl RUN pecl channel-update pecl.php.net && pecl install memcached mcrypt-1.0.1 && docker-php-ext-enable memcached # Install PostgreSQL drivers: