php-worker install redis extension
This commit is contained in:
parent
861ea6b16e
commit
67c5a6a552
@ -231,6 +231,7 @@ services:
|
|||||||
- INSTALL_TAINT=${PHP_WORKER_INSTALL_TAINT}
|
- INSTALL_TAINT=${PHP_WORKER_INSTALL_TAINT}
|
||||||
- INSTALL_FFMPEG=${PHP_WORKER_INSTALL_FFMPEG}
|
- INSTALL_FFMPEG=${PHP_WORKER_INSTALL_FFMPEG}
|
||||||
- INSTALL_GMP=${PHP_WORKER_INSTALL_GMP}
|
- INSTALL_GMP=${PHP_WORKER_INSTALL_GMP}
|
||||||
|
- INSTALL_REDIS=${PHP_WORKER_INSTALL_REDIS}
|
||||||
- PUID=${PHP_WORKER_PUID}
|
- PUID=${PHP_WORKER_PUID}
|
||||||
- PGID=${PHP_WORKER_PGID}
|
- PGID=${PHP_WORKER_PGID}
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -208,6 +208,7 @@ PHP_WORKER_INSTALL_TAINT=false
|
|||||||
PHP_WORKER_INSTALL_FFMPEG=false
|
PHP_WORKER_INSTALL_FFMPEG=false
|
||||||
PHP_WORKER_INSTALL_GMP=false
|
PHP_WORKER_INSTALL_GMP=false
|
||||||
PHP_WORKER_INSTALL_CASSANDRA=false
|
PHP_WORKER_INSTALL_CASSANDRA=false
|
||||||
|
PHP_WORKER_INSTALL_REDIS=false
|
||||||
|
|
||||||
PHP_WORKER_PUID=1000
|
PHP_WORKER_PUID=1000
|
||||||
PHP_WORKER_PGID=1000
|
PHP_WORKER_PGID=1000
|
||||||
|
@ -134,6 +134,14 @@ RUN if [ ${INSTALL_GMP} = true ]; then \
|
|||||||
RUN rm /var/cache/apk/* \
|
RUN rm /var/cache/apk/* \
|
||||||
&& mkdir -p /var/www
|
&& 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
|
# Swoole EXTENSION
|
||||||
|
Loading…
Reference in New Issue
Block a user