Skip to main content

travis

docker-tasks

docker-tasks is a tool for executing periodic tasks via docker exec. It is looking up for running docker images and execute the specified commands in the matching container

An use case could be to dump all PostgreSQL based images to the container related volume. This allow me to backup /var/lib/docker/volumes/ with a pg_dump generated database dump inside my volumes.

Installation

pip install docker-tasks

Create a docker-tasks.yml with example commands

images:
    ubuntu:
      '*':
        - ps aux

    postgres:
      '9.*':
        - /bin/sh -c "pg_dump -U postgres postgres > /var/lib/postgresql/data/db_backup_$(date +%u).sql"

Usage

usage: docker-tasks [-h] [-c CONFIG] [-v]

optional arguments:
  -h, --help            show this help message and exit
  -c CONFIG, --config CONFIG
                        Config yaml. Default (docker-tasks.yml)
  -v, --verbose         Increase output verbosity

Metadata

Release files for docker-tasks 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for docker-tasks 0.1.1
File Size Uploaded Provenance Actions
docker_tasks-0.1.1.tar.gz 2.6 kB Without provenance Details for docker_tasks-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for docker-tasks 0.1.1
File Interpreter ABI Platform Actions
docker_tasks-0.1.1-py3-none-any.whl Python 3 none any Details for docker_tasks-0.1.1-py3-none-any.whl

Total release size: 6.0 kB

Release files / docker_tasks-0.1.1.tar.gz

Download URL docker_tasks-0.1.1.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3ecad2fa26304bc61ce4eeefad0d915561b1372724729f0e521691d583926d9a
BLAKE2b-256 checksum
How to use checksums
5c472d0b88bf0e74e0eda45ea4f0fb3d5413f04a3c15b5f26c0115bcd3747199
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.6 Linux/6.1.64

Release files / docker_tasks-0.1.1-py3-none-any.whl

Download URL docker_tasks-0.1.1-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b2ed24a35ba8b9bd44ba56600f2203af2792d1709d1d4c40bff736484064b2ed
BLAKE2b-256 checksum
How to use checksums
f2b965685cecb140e9f062a72c35fece61874c5a55ed97b77bad309e2a925cd1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.6 Linux/6.1.64

Security for docker-tasks 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page