The ideal base image for cronjob based containers.
473
The ideal base image for cronjob based containers.
Note that the intended use case for this image is to use it as a base image!
Basic usage example:
docker run \
-e TZ="Europe/Helsinki" \
-e SCRIPT_SCHEDULE="everyminute" \
-e SCRIPT_WORKING_DIRECTORY="\/data" \
-e SCRIPT_STARTUP_COMMAND=".\/script.sh" \
-v $(pwd)/sample_script.sh:/data/script.sh \
--name cron \
-it \
--rm \
didstopia/cron:latest
See [Dockerfile] for further options.
The built-in scheduler can be configured by simply setting SCRIPT_SCHEDULE to any of the following string values:
everyminute15minhourlydailyweeklymonthly/dev/stdout, and this should be user configurableTZ="Europe/Helsinki")SCRIPT_WORKING_DIRECTORY or SCRIPT_STARTUP_COMMAND)See LICENSE.
Content type
Image
Digest
Size
27 MB
Last updated
about 4 years ago
docker pull didstopia/cron