[connfa-web] Rename the REDIS_PORT variable to make sure the variable is not expanded by Connfa messing up the co



commit 747875734ed5dbb307dc675aa8234677ba69b82d
Author: Andrea Veri <averi redhat com>
Date:   Wed Jun 19 20:06:25 2019 +0200

    Rename the REDIS_PORT variable to make sure the variable is not expanded by Connfa messing up the 
connection string for redis

 Dockerfile                  |  3 +++
 patches/00_REDIS_PORT.patch | 11 +++++++++++
 2 files changed, 14 insertions(+)
---
diff --git a/Dockerfile b/Dockerfile
index 9897335..92c7679 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -20,6 +20,9 @@ COPY httpd.conf /etc/httpd/conf.d/connfa.conf
 
 WORKDIR /app/connfa
 
+COPY patches /tmp/patches
+RUN patch -p0 < /tmp/patches/00_REDIS_PORT.patch
+
 RUN chown -R connfa:connfa /app/connfa && \
     chmod -R 664 /app/connfa && \
     find /app/connfa -type d -exec chmod 775 {} +
diff --git a/patches/00_REDIS_PORT.patch b/patches/00_REDIS_PORT.patch
new file mode 100644
index 0000000..bb82449
--- /dev/null
+++ b/patches/00_REDIS_PORT.patch
@@ -0,0 +1,11 @@
+--- /config/database.php       2019-06-19 20:03:15.711556501 +0200
++++ /config/database.php.modified      2019-06-19 20:03:45.340870107 +0200
+@@ -111,7 +111,7 @@
+         'default' => [
+             'host' => env('REDIS_HOST', 'localhost'),
+             'password' => env('REDIS_PASSWORD', null),
+-            'port' => env('REDIS_PORT', 6379),
++            'port' => env('_REDIS_PORT', 6379),
+             'database' => 0,
+         ],
+


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]