Skip to content

Commit f64360a

Browse files
authored
Merge pull request laradock#2443 from sohaibilyas/fix-gearman-php-worker
updated gearman installation code in php-worker service
2 parents 27f2ffd + b74c54f commit f64360a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

php-worker/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,11 @@ RUN if [ ${INSTALL_AMQP} = true ]; then \
101101
ARG INSTALL_GEARMAN=false
102102

103103
RUN if [ ${INSTALL_GEARMAN} = true ]; then \
104-
docker-php-ext-install gearman \
104+
sed -i "\$ahttp://dl-cdn.alpinelinux.org/alpine/edge/main" /etc/apk/repositories && \
105+
sed -i "\$ahttp://dl-cdn.alpinelinux.org/alpine/edge/community" /etc/apk/repositories && \
106+
sed -i "\$ahttp://dl-cdn.alpinelinux.org/alpine/edge/testing" /etc/apk/repositories && \
107+
apk --update add php7-gearman && \
108+
sh -c 'echo "extension=/usr/lib/php7/modules/gearman.so" > /usr/local/etc/php/conf.d/gearman.ini' \
105109
;fi
106110

107111
# Install Cassandra drivers:

0 commit comments

Comments
 (0)