A simple Docker image that repeatedly runs a command with a specified delay.
Name | Required | Default value | Example value | Description |
---|---|---|---|---|
COMMAND |
Yes | echo Hello |
||
AFTER_COMMAND |
No | echo Hello after |
Command that should be executed after COMMAND |
|
DELAY |
No | 1d |
7d (or any other permissible value for the sleep command) |
|
ADJUST_FOR_RUNTIME |
No | true |
false |
If set to true, subtracts the execution time of the task from the delay, ensuring the scheduler runs at consistent intervals (e.g., the same time each day). |
See this project for an example of how to use this image as your base docker image.