Ofelia is a moderm and low footprint job scheduler for docker environments, built on Go. Ofelia aims to be a replacement for the old fashioned cron.
It has been a long time since cron
was released, actually more than 28 years. The world has changed a lot and especially since the Docker
revolution. Vixie's cron works great but it's not extensible and it's hard to debug when something goes wrong.
Many solutions are available: ready to go containerized crons
, wrappers for your commands, etc. but in the end simple tasks become complex.
The main feature of Ofelia is the ability to execute commands directly on Docker containers. Using Docker's API Ofelia emulates the behavior of exec
, having full control of the process running inside of the container.
It uses a INI-style config file and the scheduling format is exactly the same from the original cron
:
[job "your-cron-name"]
schedule = @hourly
container = my-container
command = touch /tmp/example
Why the project is named Ofelia? Ofelia is the name of the office assistant from the Spanish comic Mortadelo y Filemón