Skip to content

Commit f67ec8a

Browse files
committed
Fix curl, conditionally install gearman
1 parent 480eef5 commit f67ec8a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docker/Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,18 @@ RUN set -x && \
2121
php${PHP_VERSION}-amqp \
2222
php${PHP_VERSION}-xml \
2323
php${PHP_VERSION}-mysql \
24+
php${PHP_VERSION}-curl \
2425
libgearman-dev \
2526
php-pear \
2627
make \
2728
&& \
2829
pecl channel-update pecl.php.net && \
29-
pecl install gearman
30+
pecl install gearman && \
31+
if [ ! -f /etc/php/${PHP_VERSION}/cli/conf.d/10-gearman.ini ]; then \
32+
echo "extension=gearman.so" > /etc/php/${PHP_VERSION}/cli/conf.d/10-gearman.ini && \
33+
echo "extension=gearman.so" > /etc/php/${PHP_VERSION}/fpm/conf.d/10-gearman.ini \
34+
; \
35+
fi;
3036

3137
## librdkafka
3238
RUN set -x && \

0 commit comments

Comments
 (0)