Unverified Commit 470d7bc6 authored by Brad Durrow's avatar Brad Durrow Committed by GitHub

Fix: Add group write perms to /etc/redis (#4)

* Fix: Add group write perms to /etc/redis

By default OpenShift runs as a non-root user but the GID is always 0.  To allow `entrypoint.sh` to configure redis at container start, we need to change the permissions so that GID 0 users can modify `/etc/redis` and it's contents.
Signed-off-by: default avatarBrad Durrow <brad@nolab.org>

* Add /opt/redis with g+rwX for Openshift
Signed-off-by: default avatarBrad Durrow <brad@nolab.org>
parent 93b87383
...@@ -32,6 +32,9 @@ COPY setupMasterSlave.sh /usr/bin/setupMasterSlave.sh ...@@ -32,6 +32,9 @@ COPY setupMasterSlave.sh /usr/bin/setupMasterSlave.sh
COPY healthcheck.sh /usr/bin/healthcheck.sh COPY healthcheck.sh /usr/bin/healthcheck.sh
RUN mkdir -p /opt/redis/ && \
chmod -R g+rwX /etc/redis /opt/redis
VOLUME ["/data"] VOLUME ["/data"]
WORKDIR /data WORKDIR /data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment