Skip to content

Commit

Permalink
Fix redis-sentinel entrypoint & /etc/redis permissions
Browse files Browse the repository at this point in the history
Signed-off-by: Gazdag András <[email protected]>
  • Loading branch information
gazdagandras committed Sep 22, 2023
1 parent 9fd72ad commit 35405c9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ RUN chown -R 1000:0 /etc/redis && \
chmod -R g+rw /etc/redis && \
mkdir /data && \
chown -R 1000:0 /data && \
chmod -R g+rw /data
chmod -R g+rw /data && \
mkdir /node-conf && \
chown -R 1000:0 /node-conf && \
chmod -R g+rw /node-conf

VOLUME ["/data"]

Expand Down
6 changes: 5 additions & 1 deletion Dockerfile.sentinel
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ COPY entrypoint-sentinel.sh /usr/bin/entrypoint-sentinel.sh

COPY healthcheck-Sentinel.sh /usr/bin/healthcheck.sh

RUN chown -R redis:redis /etc/redis
RUN chown -R 1000:0 /etc/redis && \
chmod -R g+rw /etc/redis && \
mkdir /sentinel-data && \
chown -R 1000:0 /sentinel-data && \
chmod -R g+rw /sentinel-data

VOLUME ["/sentinel-data"]

Expand Down
2 changes: 2 additions & 0 deletions entrypoint-sentinel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,5 @@ main_function() {
fi
start_sentinel
}

main_function

0 comments on commit 35405c9

Please sign in to comment.