This is a simple way to run tasks in a certain interval inside a docker container.
This image doesn't do anything by itself, you need to extend (FROM
) this image to make it work as you want. Copy your task, or the script to start your task, to /task.sh
, that it's done.
Just start your task container as
docker run --rm -it \
-e "INVERTAL=3600" \
-e "MODE=cron"
yourimage
INTERVAL
- The interval, in seconds, between each task execution.MODE
- The operation mode,cron
is the only one at the moment, and forever, see deprecation notice bellow.
This project is deprecated, move to tasker to have a better task management.