Skip to content

Commit

Permalink
laravel-horizon: Install 'sockets' without install 'AMQP` (#2211)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
vlauciani authored and bestlong committed Jul 30, 2019
1 parent 51c6d35 commit 2e928a4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ services:
- INSTALL_PGSQL=${PHP_FPM_INSTALL_PGSQL}
- INSTALL_BCMATH=${PHP_FPM_INSTALL_BCMATH}
- INSTALL_MEMCACHED=${PHP_FPM_INSTALL_MEMCACHED}
- INSTALL_AMQP=${PHP_FPM_INSTALL_AMQP}
- INSTALL_SOCKETS=${LARAVEL_HORIZON_INSTALL_SOCKETS}
- INSTALL_CASSANDRA=${PHP_FPM_INSTALL_CASSANDRA}
volumes:
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
Expand Down
4 changes: 4 additions & 0 deletions env-example
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@ NGINX_PHP_UPSTREAM_CONTAINER=php-fpm
NGINX_PHP_UPSTREAM_PORT=9000
NGINX_SSL_PATH=./nginx/ssl/

### LARAVEL_HORIZON ################################################

LARAVEL_HORIZON_INSTALL_SOCKETS=false

### APACHE ################################################

APACHE_HOST_HTTP_PORT=80
Expand Down
4 changes: 2 additions & 2 deletions laravel-horizon/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ RUN if [ ${INSTALL_BCMATH} = true ]; then \
;fi

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

Expand Down

0 comments on commit 2e928a4

Please sign in to comment.