Merge pull request #2304 from haoyq02/fix-php-worker
php-worker install redis extension
This commit is contained in:
commit
d4240ce211
|
@ -231,6 +231,7 @@ services:
|
|||
- INSTALL_TAINT=${PHP_WORKER_INSTALL_TAINT}
|
||||
- INSTALL_FFMPEG=${PHP_WORKER_INSTALL_FFMPEG}
|
||||
- INSTALL_GMP=${PHP_WORKER_INSTALL_GMP}
|
||||
- INSTALL_REDIS=${PHP_WORKER_INSTALL_REDIS}
|
||||
- PUID=${PHP_WORKER_PUID}
|
||||
- PGID=${PHP_WORKER_PGID}
|
||||
volumes:
|
||||
|
|
|
@ -208,6 +208,7 @@ PHP_WORKER_INSTALL_TAINT=false
|
|||
PHP_WORKER_INSTALL_FFMPEG=false
|
||||
PHP_WORKER_INSTALL_GMP=false
|
||||
PHP_WORKER_INSTALL_CASSANDRA=false
|
||||
PHP_WORKER_INSTALL_REDIS=false
|
||||
|
||||
PHP_WORKER_PUID=1000
|
||||
PHP_WORKER_PGID=1000
|
||||
|
|
|
@ -134,6 +134,14 @@ RUN if [ ${INSTALL_GMP} = true ]; then \
|
|||
RUN rm /var/cache/apk/* \
|
||||
&& mkdir -p /var/www
|
||||
|
||||
# Install Redis package:
|
||||
ARG INSTALL_REDIS=false
|
||||
RUN if [ ${INSTALL_REDIS} = true ]; then \
|
||||
# Install Redis Extension
|
||||
printf "\n" | pecl install -o -f redis \
|
||||
&& rm -rf /tmp/pear \
|
||||
&& docker-php-ext-enable redis \
|
||||
;fi
|
||||
|
||||
###########################################################################
|
||||
# Swoole EXTENSION
|
||||
|
|
Loading…
Reference in New Issue