Skip to content

Commit 6b6e2d5

Browse files
committed
Adding pcntl to php-fpm, php-worker, addresses laradock#1419
1 parent 0c41fce commit 6b6e2d5

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

env-example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ PHP_FPM_INSTALL_GHOSTSCRIPT=false
138138
PHP_FPM_INSTALL_LDAP=false
139139
PHP_FPM_INSTALL_SWOOLE=false
140140
PHP_FPM_INSTALL_PG_CLIENT=false
141+
PHP_FPM_INSTALL_PCNTL=false
141142

142143
### PHP_WORKER ############################################
143144

php-fpm/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,16 @@ RUN if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
168168
docker-php-ext-install zip \
169169
;fi
170170

171+
###########################################################################
172+
# pcntl
173+
###########################################################################
174+
175+
ARG INSTALL_PCNTL=false
176+
RUN if [ ${INSTALL_PCNTL} = true]; then \
177+
# Installs pcntl, helpful for running Horizon
178+
docker-php-ext-install pcntl \
179+
;fi
180+
171181
###########################################################################
172182
# bcmath:
173183
###########################################################################

php-worker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ RUN apk --update add wget \
2222
libgsasl-dev \
2323
supervisor
2424

25-
RUN docker-php-ext-install mysqli mbstring pdo pdo_mysql tokenizer xml
25+
RUN docker-php-ext-install mysqli mbstring pdo pdo_mysql tokenizer xml pcntl
2626
RUN pecl channel-update pecl.php.net && pecl install memcached mcrypt-1.0.1 && docker-php-ext-enable memcached
2727

2828
# Install PostgreSQL drivers:

0 commit comments

Comments
 (0)