Sign inSign up

unclcd/cron

By unclcd

Updated 10 months ago

Image
0

1.5K

unclcd/cron repository overview

Cron

Image based on python:3.7-slim for running periodic task with cron.

Usage

  1. Add a file called scheduler.crontab to image root

     FROM unclcd/cron:latest
     COPY scheduler.crontab /scheduler.crontab
    
  2. The file scheduler.crontab should contain a line for every task following crontab sintaxis. Also the file should contain a last line, and every command should be redirected to /proc/1/fd/1 2>/proc/1/fd/2 for its output to be redirected to container standard output. For instance:

     * * * * * your_command > /proc/1/fd/1 2>/proc/1/fd/2
     # This extra line makes it a valid cron
     
    
  3. Ensure your command and every dependency are available in the correct path.

Tag summary

Content type

Image

Digest

sha256:12a1a9b89

Size

49.6 MB

Last updated

over 2 years ago

docker pull unclcd/cron