/docker-jobber

A minimal Docker container for running Jobber (cron-replacement) tasks

Docker Jobber

A minimal setup for running Jobber via Supervisor in a Docker container.

Usage

Pulling the images from Dockerhub:

$ docker pull richtr/docker-jobber

Jobber needs a .jobber file to schedule tasks to run. You can attach it at /root/.jobber in the container with a volume:

$ echo "---
- name: HelloWorld
  cmd: echo hello world
  time: 1
" >> .jobber
$ docker run --name my-docker-jobber -v $(pwd)/.jobber:/root/.jobber:ro richtr/docker-jobber

To view the latest jobber activity on the running Docker container we can use docker logs <CONTAINER>:

$ docker logs my-docker-jobber

Docker Compose

You can use this project to create your own images by adding a .jobber file to the same directory as your docker-compose.yml file and simply add your own .jobber file with your image:

FROM richtr/docker-jobber

ADD .jobber /root/.jobber

# ...

Feedback

If you find any bugs or issues please report them on the Issue Tracker.

If you would like to contribute to this project please consider forking this repo, making your changes and then creating a new Pull Request back to the main code repository.