-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(azure-cron): working cron-jobs every 15mn
- Loading branch information
Showing
5 changed files
with
28 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,20 @@ | ||
FROM alpine | ||
FROM python:3.12-alpine | ||
|
||
RUN which crond && \ | ||
rm -rf /etc/periodic | ||
RUN apk update | ||
RUN apk add --update openssl curl jq sed | ||
|
||
# /etc/periodic/hourly | ||
# /etc/periodic/daily | ||
# /etc/periodic/weekly | ||
# /etc/periodic/monthly | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
COPY entrypoint.sh /etc/periodic/15min/entrypoint | ||
RUN chmod +x /entrypoint.sh /etc/periodic/15min/entrypoint | ||
|
||
|
||
ENTRYPOINT ["/entrypoint.sh"] | ||
|
||
# source: `docker run --rm -it alpine crond -h` | ||
# -f | Foreground | ||
# -l N | Set log level. Most verbose 0, default 8 | ||
CMD ["crond", "-f", "-l", "2"] | ||
CMD ["crond", "-f", "-l", "8", "-L", "/var/log/cron.log"] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters