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
- Host: GitHub
- URL: https://github.com/richtr/docker-jobber
- Owner: richtr
- Created: 2017-03-27T01:05:12.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-03T23:38:45.000Z (over 9 years ago)
- Last Synced: 2025-02-09T07:23:56.693Z (over 1 year ago)
- Topics: cron, docker, jobber, supervisor
- Size: 9.77 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.