A utility to run jobs periodically, like the classic cron.
692
A utility to run jobs periodically, like the classic cron but
with better logging and a little more human friendly.
These docker images provide a convenient environment to run periodic tasks as part of your application deployment.
To make use of the images you need a configuration file
describing your jobs (see documentation section below).
By default the configuration file is /etc/rept/rept.toml,
so that you can mount it into the container or copy it in
a derived image.
The jobs are run with the user ID 1000, so they won't be able to modify the container filesystem and mounted volumes need to have the appropriate permission.
Logs are logged both to standard output (and thus
you can see them using docker logs) and also to
/var/logs/rept/rept.log if you want to store them
on a volume.
For more documentation on the use of the package, please visit the GitHub page.
There are two variants of the image:
rept:{version}: an empty image containing only
the executable and weighting about 2.5 MB. This is ideal
as a base image to add your own executables
(for instance statically linked golang binaries). The image
does not have even basic commands such as mkdir,
so it's pretty useless in any other case.
-rept:{version}-buster: corresponding image but
built from the official debian buster image. This is what
you're looking for if you want to install other packages
or you need utilities.docker pull frapasa/rept:latest