Skip to content

Commit

Permalink
Update opensciencegrid/logrotate/Dockerfile
Browse files Browse the repository at this point in the history
Co-authored-by: Brian Lin <[email protected]>
  • Loading branch information
mwestphall and brianhlin authored Aug 9, 2024
1 parent a408154 commit 728cf64
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion opensciencegrid/logrotate/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ ENV LOGROTATE_OPTIONS=
# File path(s) for LogRotate config files
ENV LOGROTATE_CONF="/etc/logrotate.d/*.logrotate"

RUN yum install -y crontabs cronie logrotate && yum clean all
RUN yum install -y crontabs \
cronie \
logrotate \
&& yum clean all

CMD [ "sh", "-c", "echo \"$CRON_EXPR /usr/sbin/logrotate $LOGROTATE_OPTIONS $LOGROTATE_CONF\" '> /proc/$(cat /var/run/crond.pid)/fd/1 2>&1' | crontab - && crond -n"]

0 comments on commit 728cf64

Please sign in to comment.