From eadecf1f1e98b87377e7f9ba6cd1b394fedbf705 Mon Sep 17 00:00:00 2001 From: Valentino Lauciani Date: Mon, 16 Sep 2019 14:56:48 +0200 Subject: [PATCH 1/4] Install PHPREDIS --- env-example | 1 + 1 file changed, 1 insertion(+) diff --git a/env-example b/env-example index 76a4af3..0fd9d9d 100644 --- a/env-example +++ b/env-example @@ -225,6 +225,7 @@ NGINX_SSL_PATH=./nginx/ssl/ ### LARAVEL_HORIZON ################################################ LARAVEL_HORIZON_INSTALL_SOCKETS=false +LARAVEL_HORIZON_INSTALL_PHPREDIS=true ### APACHE ################################################ From e852d203ab99f1cd72bdc3d6f92725e1af02a530 Mon Sep 17 00:00:00 2001 From: Valentino Lauciani Date: Mon, 16 Sep 2019 14:57:59 +0200 Subject: [PATCH 2/4] Install PHPREDIS into Laravel-Horizon docker image --- docker-compose.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-compose.yml b/docker-compose.yml index e4a4fc4..07c47f6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -253,6 +253,7 @@ services: - INSTALL_MEMCACHED=${PHP_FPM_INSTALL_MEMCACHED} - INSTALL_SOCKETS=${LARAVEL_HORIZON_INSTALL_SOCKETS} - INSTALL_CASSANDRA=${PHP_FPM_INSTALL_CASSANDRA} + - INSTALL_PHPREDIS=${LARAVEL_HORIZON_INSTALL_PHPREDIS} volumes: - ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER} - ./laravel-horizon/supervisord.d:/etc/supervisord.d From df15420be01c3fcc7a9bea0242d117c1be2b9f63 Mon Sep 17 00:00:00 2001 From: Valentino Lauciani Date: Mon, 16 Sep 2019 14:58:38 +0200 Subject: [PATCH 3/4] Install PHPREDIS into Laravel-Horizon docker image --- laravel-horizon/Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/laravel-horizon/Dockerfile b/laravel-horizon/Dockerfile index ee5b9ff..60079bd 100644 --- a/laravel-horizon/Dockerfile +++ b/laravel-horizon/Dockerfile @@ -50,6 +50,15 @@ ARG INSTALL_CASSANDRA=false RUN if [ ${INSTALL_CASSANDRA} = true ]; then \ apk --update add cassandra-cpp-driver \ ;fi + +# Install PhpRedis +ARG INSTALL_PHPREDIS=false +RUN if [ ${INSTALL_PHPREDIS} = true ]; then \ + # Install Php Redis Extension + printf "\n" | pecl install -o -f redis \ + && rm -rf /tmp/pear \ + && docker-php-ext-enable redis \ +;fi WORKDIR /usr/src RUN if [ ${INSTALL_CASSANDRA} = true ]; then \ From 5dbd46f9ffcd0ad57dd7379ca75f9a32c033e8bd Mon Sep 17 00:00:00 2001 From: Valentino Lauciani Date: Mon, 16 Sep 2019 15:00:44 +0200 Subject: [PATCH 4/4] Update comment --- laravel-horizon/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laravel-horizon/Dockerfile b/laravel-horizon/Dockerfile index 60079bd..766b245 100644 --- a/laravel-horizon/Dockerfile +++ b/laravel-horizon/Dockerfile @@ -51,7 +51,7 @@ RUN if [ ${INSTALL_CASSANDRA} = true ]; then \ apk --update add cassandra-cpp-driver \ ;fi -# Install PhpRedis +# Install PhpRedis package: ARG INSTALL_PHPREDIS=false RUN if [ ${INSTALL_PHPREDIS} = true ]; then \ # Install Php Redis Extension