mirror of
https://github.com/willfarrell/docker-crontab.git
synced 2025-04-04 14:05:11 +02:00
For busybox cron level 6 is enough to see errors and hide debug info Debug info shown at level 5 Nothing shown at levels 0, 1, 2, 3, 4 See https://unix.stackexchange.com/questions/412805/crond-log-level-meaning
15 lines
390 B
Docker
15 lines
390 B
Docker
FROM library/docker:stable
|
|
|
|
ENV HOME_DIR=/opt/crontab
|
|
RUN apk add --no-cache --virtual .run-deps bash jq \
|
|
&& mkdir -p ${HOME_DIR}/jobs ${HOME_DIR}/projects \
|
|
&& adduser -S docker -D
|
|
|
|
COPY docker-entrypoint /
|
|
ENTRYPOINT ["/docker-entrypoint"]
|
|
|
|
HEALTHCHECK --interval=5s --timeout=3s \
|
|
CMD ps aux | grep '[c]rond' || exit 1
|
|
|
|
CMD ["crond", "-f", "-d", "6", "-c", "/etc/crontabs"]
|