adjusted cron
This commit is contained in:
1 parent
ae53e694d4
commit
289c1cac72
2 files changed
+3
-5
No files matched your search
+1
-1
@@ -1,5 +1,5 @@
|
||||
FROM alpine:latest
|
||||
COPY . opt
|
||||
RUN apk add --no-cache supercronic
|
||||
RUN apk add --no-cache cronie
|
||||
RUN chmod +x /opt/entrypoint.sh
|
||||
CMD ["/opt/entrypoint.sh"]
|
||||
+2
-4
@@ -1,7 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
CRON_CONFIG_FILE="/opt/crontab"
|
||||
CRON_CONFIG_FILE="/etc/crontabs/root"
|
||||
|
||||
echo "${CRON} echo Come in the water is fine. >/dev/null" > $CRON_CONFIG_FILE
|
||||
|
||||
exec supercronic -passthrough-logs -quiet $CRON_CONFIG_FILE
|
||||
echo "${CRON} echo "Come in the water is fine!" > /opt/output.log" > $CRON_CONFIG_FILE
|
||||
Reference in new issue
Block a user