laravel-horizon: Install 'sockets' without install 'AMQP` (#2211)

* Add LARAVEL_HORIZON_INSTALL_SOCKETS variable. Issue #2209
* Get LARAVEL_HORIZON_INSTALL_SOCKETS from .env. Issue #2209
* Get INSTALL_SOCKETS variable and install 'sockets' ext. Issue #2209
This commit is contained in:
Valentino Lauciani 2019-07-30 06:48:24 +02:00 committed by Shao Yu-Lung (Allen)
parent 51c6d3549c
commit 2e928a4928
3 changed files with 7 additions and 3 deletions

View File

@ -251,7 +251,7 @@ services:
- INSTALL_PGSQL=${PHP_FPM_INSTALL_PGSQL} - INSTALL_PGSQL=${PHP_FPM_INSTALL_PGSQL}
- INSTALL_BCMATH=${PHP_FPM_INSTALL_BCMATH} - INSTALL_BCMATH=${PHP_FPM_INSTALL_BCMATH}
- INSTALL_MEMCACHED=${PHP_FPM_INSTALL_MEMCACHED} - INSTALL_MEMCACHED=${PHP_FPM_INSTALL_MEMCACHED}
- INSTALL_AMQP=${PHP_FPM_INSTALL_AMQP} - INSTALL_SOCKETS=${LARAVEL_HORIZON_INSTALL_SOCKETS}
- INSTALL_CASSANDRA=${PHP_FPM_INSTALL_CASSANDRA} - INSTALL_CASSANDRA=${PHP_FPM_INSTALL_CASSANDRA}
volumes: volumes:
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER} - ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}

View File

@ -222,6 +222,10 @@ NGINX_PHP_UPSTREAM_CONTAINER=php-fpm
NGINX_PHP_UPSTREAM_PORT=9000 NGINX_PHP_UPSTREAM_PORT=9000
NGINX_SSL_PATH=./nginx/ssl/ NGINX_SSL_PATH=./nginx/ssl/
### LARAVEL_HORIZON ################################################
LARAVEL_HORIZON_INSTALL_SOCKETS=false
### APACHE ################################################ ### APACHE ################################################
APACHE_HOST_HTTP_PORT=80 APACHE_HOST_HTTP_PORT=80

View File

@ -33,8 +33,8 @@ RUN if [ ${INSTALL_BCMATH} = true ]; then \
;fi ;fi
#Install Sockets package: #Install Sockets package:
ARG INSTALL_AMQP=false ARG INSTALL_SOCKETS=false
RUN if [ ${INSTALL_AMQP} = true ]; then \ RUN if [ ${INSTALL_SOCKETS} = true ]; then \
docker-php-ext-install sockets \ docker-php-ext-install sockets \
;fi ;fi