An open API service indexing awesome lists of open source software.

https://github.com/richtr/docker-jobber

A minimal Docker container for running Jobber (cron-replacement) tasks
https://github.com/richtr/docker-jobber

cron docker jobber supervisor

Last synced: over 1 year ago
JSON representation

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

Awesome Lists containing this project

README

          

# Docker Jobber

A minimal setup for running [Jobber](https://dshearer.github.io/jobber/) via [Supervisor](http://supervisord.org/) in a Docker container.

## Usage

Pulling the images from [Dockerhub](https://hub.docker.com/):

$ 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:

``` bash
$ 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 `:

$ 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:

``` yaml
FROM richtr/docker-jobber

ADD .jobber /root/.jobber

# ...
```

### Feedback ###

If you find any bugs or issues please report them on the [Issue Tracker](https://github.com/richtr/docker-jobber/issues).

If you would like to contribute to this project please consider [forking this repo](https://github.com/richtr/docker-jobber/fork), making your changes and then creating a new [Pull Request](https://github.com/richtr/docker-jobber/pulls) back to the main code repository.