Job scheduler for Docker containers, configured via container labels.
Project description
A job scheduler for Docker containers, configured via container labels.
Documentation: https://deck-chores.readthedocs.io
Code repository: https://github.com/funkyfuture/deck-chores
Issue tracker: https://github.com/funkyfuture/deck-chores/issues
Free software: ISC license
Features
define regular jobs to run within a container context with container and optionally with image labels
use date, interval and cron-like triggers
set a maximum of simultaneously running instances per job
restrict job scheduling to one container per service
multi-architecture image supports amd64, arm64 and arm platforms (the latter are currently not provided for download)
Example
Let’s say you want to dump the database of a Wordpress once a day. Here’s a docker-compose.yml that defines a job that will be handled by deck-chores:
version: "3.7"
services:
wordpress:
image: wordpress
mysql:
image: mariadb
volumes:
- ./database_dumps:/dumps
labels:
deck-chores.dump.command: sh -c "mysqldump --all-databases > /dumps/dump-$$(date -Idate)"
deck-chores.dump.interval: daily
It is however recommended to use scripts with a proper shebang for such actions. Their outputs to stdout and stderr as well as their exit code will be logged by deck-chores.
Maintenance
The final release is supposed to receive monthly updates that includes updates of all updateable dependencies. If one is skipped, don’t worry. When a second maintenance release is skipped, feel free to open an issue to ask what the status is.
You can always build images upon an up-to-date base image with:
make build
Limitations
When running on a cluster of Docker Swarm nodes, each deck-chores instance can only observe the containers on the node it’s running on, and hence only restrict to run one job per service within the node’s context.
Acknowledgements
It wouldn’t be as charming to write this piece of software without these projects:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file deck_chores-1.4.4.tar.gz
.
File metadata
- Download URL: deck_chores-1.4.4.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 502dc96c2ee096174eddfcc8e436a91dc30d02b81edf8a7cd7d78f9b68b97185 |
|
MD5 | 9a5de9f1af6cbaa1153a2779a378f423 |
|
BLAKE2b-256 | e924f914d84917acca20e44d5571fa620707b8d3035462ac2fb8419e71809d0e |
File details
Details for the file deck_chores-1.4.4-py3-none-any.whl
.
File metadata
- Download URL: deck_chores-1.4.4-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 710aca7f6d0e969f83aabac2109bf17828affc8d8c9273962ea813b2890e75af |
|
MD5 | 543ab49c36e8e3580cb06c44fb9503b5 |
|
BLAKE2b-256 | 1acc5145f8d888ed2cb1768860306aaf3b37f8db3e5666f195ffc728c7e4a711 |