A cron scheduler for Tutum (http://tutum.co)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


A Cron Scheduler for Tutum


To use you simply need to add a link to each service you wish to schedule and then an environment variable that starts with the capitalized name of the service and which ends in _CRON_SCHEDULE, e.g.:

    TEST_CRON_SCHEDULE: '*/5 * * * *'
    - test

You'll also want to make sure you add the global role on tutum-cron:

    - global

Everything you really need to know is in the tutum.yml file, just take a look and you'll get the idea. So just press the button and get going:

Deploy to Tutum


Everything you need to know about scheduling can be found in the fcrontab documentation but simply you can use the cron syntax you are familiar with:

* * * * * *
| | | | | | 
| | | | | +-- Year              (range: 1900-3000)
| | | | +---- Day of the Week   (range: 1-7, 1 standing for Monday)
| | | +------ Month of the Year (range: 1-12)
| | +-------- Day of the Month  (range: 1-31)
| +---------- Hour              (range: 0-23)
+------------ Minute            (range: 0-59)

You can of course use an online generator such as http://crontab-generator.org/ to help you along.

##Further Info

This scheduler uses fcron to schedule commands, fcron is great because like anacron it catches up with running services it misses while down. So it's totally okay to change the config and restart the server.

The base container uses work originally taken from https://github.com/just-containers/base-alpine credit to john@jrjrtech.com this provides us with the S6 supervisor which this image uses to run cron, dnsmasq and the main run.sh script.

The real base of this image though is Alpine Linux brought to Docker via Glider Labs.