Sign inSign up

minimum/cron

By minimum

Updated over 8 years ago

Easy to use crond service.

Image
0

242

minimum/cron repository overview

docker-cron

How to Use

  1. Create a folder to store executable files which will launch by crond.

  2. Create executable files with specified prefix filename.

PeriodPrefixExample
1 minute1m_ or 1min_1m_hello.sh
5 minutes5m_ or 5min_5min_hello.sh
10 minutes10m_ or 10min_10m_hello.sh
15 minutes15m_ or 15min_15min_hello.sh
30 minutes30m_ or 30min_30m_hello.sh
1 hour1h_ or 1hour_1h_hello.py
12 hours12h_ or 12hour_12hour_hello.py
1 day1d_ or 1day_1d_hello.py
1 week1w_ or 1week_1week_hello.py
1 month1M_ or 1month_1M_hello.py
  1. Replace /path/to/folder in the following command, and run it.
docker run -d --name cron -v /path/to/folder:/usr/local/cron minimum/cron:py3

Advanced

If you want to quickly execute all files when container launched, you can run

docker run -d --name cron -v /path/to/folder:/usr/local/cron minimum/cron:py3 -f

Tag summary

Content type

Image

Digest

Size

19.5 MB

Last updated

over 8 years ago

docker pull minimum/cron:py3