From b74c54f804cd1064ffaec0031d630903342b5ab8 Mon Sep 17 00:00:00 2001 From: Sohaib Ilyas Date: Tue, 24 Dec 2019 02:45:19 +0500 Subject: [PATCH] updated gearman installation code in php-worker service --- php-worker/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/php-worker/Dockerfile b/php-worker/Dockerfile index 350c40dc..e72f51a8 100644 --- a/php-worker/Dockerfile +++ b/php-worker/Dockerfile @@ -101,7 +101,11 @@ RUN if [ ${INSTALL_AMQP} = true ]; then \ ARG INSTALL_GEARMAN=false RUN if [ ${INSTALL_GEARMAN} = true ]; then \ - docker-php-ext-install gearman \ + sed -i "\$ahttp://dl-cdn.alpinelinux.org/alpine/edge/main" /etc/apk/repositories && \ + sed -i "\$ahttp://dl-cdn.alpinelinux.org/alpine/edge/community" /etc/apk/repositories && \ + sed -i "\$ahttp://dl-cdn.alpinelinux.org/alpine/edge/testing" /etc/apk/repositories && \ + apk --update add php7-gearman && \ + sh -c 'echo "extension=/usr/lib/php7/modules/gearman.so" > /usr/local/etc/php/conf.d/gearman.ini' \ ;fi # Install Cassandra drivers: