Skip to content

Commit

Permalink
Merge pull request #1 from stakater-docker/logrotate-3.15
Browse files Browse the repository at this point in the history
Update to Logrotate 3.15 and base alpine 3.11
  • Loading branch information
ahmedwaleedmalik authored May 14, 2020
2 parents 35e617d + 3f6af82 commit 8b180ee
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM stakater/base-alpine:3.7
FROM stakater/base-alpine:3.11

ARG LOGROTATE_VERSION=3.13.0-r0
ENV CRON_SCHEDULE="0 0 * * * *"
ARG LOGROTATE_VERSION=3.15.1-r0
ENV CRON_SCHEDULE="0 0 * * *"
RUN apk --update add "logrotate=${LOGROTATE_VERSION}"
RUN echo "${CRON_SCHEDULE} /usr/sbin/logrotate -v /etc/logrotate.conf" >> /etc/crontabs/root && \
mkdir -p /etc/logrotate.d

ADD logrotate.conf /etc/logrotate.conf

ENTRYPOINT [ ]
CMD ["crond", "-f"]
CMD ["crond", "-f"]
7 changes: 7 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env groovy
@Library('github.com/stakater/[email protected]') _

pushDockerImage {
dockerRepositoryURL = "docker.io"
imagePrefix = "3.15.1"
}

0 comments on commit 8b180ee

Please sign in to comment.