forked from pyouroboros/ouroboros
-
-
Notifications
You must be signed in to change notification settings - Fork 5
Customized Scheduling
gmt2001 edited this page Mar 6, 2022
·
5 revisions
Ouroboros supports --interval
and --cron
internally.
You can also schedule Ouroboros to run using built-in Linux system schedulers.
- Cron
- Systemd Timers
Example using ouroboros to update containers every Monday at 5AM:
Docker
* 5 * * 1 docker run --rm -d --name ouroboros -v /var/run/docker.sock:/var/run/docker.sock gmt2001/ouroboros --interval 1 --run-once
Pip installed CLI
* 5 * * 1 ouroboros --interval 1 --run-once
Using the --run-once
arg tells ouroboros to make one pass updating all/specified containers and then exit.