Skip to content

Commit

Permalink
Fixing logrotate permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
deniszh committed Sep 5, 2019
1 parent b1c22ce commit 9b8b862
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.10 as base
FROM alpine:3.10.2 as base
LABEL maintainer="Denys Zhdanov <[email protected]>"

RUN true \
Expand Down Expand Up @@ -53,7 +53,7 @@ RUN true \
&& virtualenv /opt/graphite \
&& . /opt/graphite/bin/activate \
&& pip3 install \
django==1.11.21 \
django==1.11.24 \
django-statsd-mozilla \
fadvise \
gunicorn \
Expand Down
4 changes: 3 additions & 1 deletion conf/entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ done
# remove stale pids
find /opt/graphite/storage -maxdepth 1 -name '*.pid' -delete

exec runsvdir -P /etc/service &
# chown logrotate fle (#111)
chown 0644 /etc/logrotate.d/*

exec runsvdir -P /etc/service &
RUNSVDIR=$!
echo "Started runsvdir, PID is $RUNSVDIR"
echo "wait for processes to start...."
Expand Down

0 comments on commit 9b8b862

Please sign in to comment.