Skip to content

Latest commit

 

History

History

cronut

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

cronut

Docker image for cronut.

Docker Hub Badge

This currently uses sqlite to simplify the setup.

Usage:

docker run -ti --rm -p 3000:80 -e SECRET_KEY_BASE=<something secure> cronut

Go to localhost:3000, add a job. Note the Ping ID of the job.

To ping cronut for this job, send a post request:

curl --header "X-CRONUT-API-TOKEN: token" -X POST -F "public_id=$(date +%s)-<Ping ID>" localhost:3000/ping

API:

You can set those environment variables:

env var default
SECRET_KEY_BASE ⚠️
TOKEN token
PORT 80
RAILS_ENV production
CRONUT_BASE_TIME_ZONE Europe/Berlin

To change the system timezone, check the commands used in the Dockerfile.