changed to supercronic
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d89bd69ee5
commit
c4ffcee3a3
@ -1,5 +1,5 @@
|
||||
from alpine:latest
|
||||
RUN apk add --no-cache curl
|
||||
RUN apk add --no-cache curl,supercronic
|
||||
COPY crontab opt
|
||||
COPY entrypoint.sh opt
|
||||
COPY phc.sh opt
|
||||
|
@ -1,5 +1,10 @@
|
||||
#!/bin/sh
|
||||
CRON_CONFIG_FILE="/opt/crontab"
|
||||
|
||||
printenv | grep -v "no_proxy" >> /etc/environment
|
||||
# CRON
|
||||
get_env CRON
|
||||
CRON="${CRON:-"5 * * * *"}"
|
||||
|
||||
crond -f
|
||||
echo "${CRON} sh /opt/phc.sh" >> "${CRON_CONFIG_FILE}"
|
||||
|
||||
exec supercronic -passthrough-logs -quiet "${CRON_CONFIG_FILE}"
|
Loading…
x
Reference in New Issue
Block a user