docker-tasks


Namedocker-tasks JSON
Version 0.1.0 PyPI version JSON
download
home_page
SummaryRun periodic tasks via docker exec
upload_time2023-12-06 10:39:25
maintainer
docs_urlNone
authorReimund Klain
requires_python>=3.8,<4.0
licenseBSD
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            |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 <https://www.postgresql.org/>`__ 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


.. |travis| image:: https://travis-ci.org/daymien/docker-tasks.svg
   :target: https://travis-ci.org/daymien/docker-tasks
            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "docker-tasks",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "Reimund Klain",
    "author_email": "reimund.klain@condevtec.de",
    "download_url": "https://files.pythonhosted.org/packages/dc/6e/41422d4d48bbadf6e5685127b388fb3237dfa3cef7e383707bf765d3338a/docker_tasks-0.1.0.tar.gz",
    "platform": null,
    "description": "|travis|\n\ndocker-tasks\n############\n\n``docker-tasks`` is a tool for executing periodic tasks via docker exec.\nIt is looking up for running docker images and execute the specified commands in the matching container\n\nAn use case could be to dump all `PostgreSQL <https://www.postgresql.org/>`__ based images to the container related volume.\nThis allow me to backup ``/var/lib/docker/volumes/`` with a ``pg_dump`` generated database dump inside my volumes.\n\nInstallation\n============\n\n::\n\n    pip install docker-tasks\n\n\nCreate a ``docker-tasks.yml`` with example commands\n\n::\n\n    images:\n        ubuntu:\n          '*':\n            - ps aux\n\n        postgres:\n          '9.*':\n            - /bin/sh -c \"pg_dump -U postgres postgres > /var/lib/postgresql/data/db_backup_$(date +%u).sql\"\n\nUsage\n=====\n\n::\n\n    usage: docker-tasks [-h] [-c CONFIG] [-v]\n\n    optional arguments:\n      -h, --help            show this help message and exit\n      -c CONFIG, --config CONFIG\n                            Config yaml. Default (docker-tasks.yml)\n      -v, --verbose         Increase output verbosity\n\n\n.. |travis| image:: https://travis-ci.org/daymien/docker-tasks.svg\n   :target: https://travis-ci.org/daymien/docker-tasks",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "Run periodic tasks via docker exec",
    "version": "0.1.0",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "31896865e720bbd6b5946953da9dbeff31e1c9fcb9c3c52accfe55733a647f38",
                "md5": "1318834dbb90563430539b0fbb073a43",
                "sha256": "50d410d3b80dfb1960dac6d1799df1a7cfc186dae8df0ecb498842cf91be9c71"
            },
            "downloads": -1,
            "filename": "docker_tasks-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1318834dbb90563430539b0fbb073a43",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 3175,
            "upload_time": "2023-12-06T10:39:21",
            "upload_time_iso_8601": "2023-12-06T10:39:21.548564Z",
            "url": "https://files.pythonhosted.org/packages/31/89/6865e720bbd6b5946953da9dbeff31e1c9fcb9c3c52accfe55733a647f38/docker_tasks-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "dc6e41422d4d48bbadf6e5685127b388fb3237dfa3cef7e383707bf765d3338a",
                "md5": "3c8a9e06e2ad478b02590cfc01c872c7",
                "sha256": "2a155f66cc6c02a9572526dce71ec47effcb1a13e008da7a84b62b0714b7a99d"
            },
            "downloads": -1,
            "filename": "docker_tasks-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "3c8a9e06e2ad478b02590cfc01c872c7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 2561,
            "upload_time": "2023-12-06T10:39:25",
            "upload_time_iso_8601": "2023-12-06T10:39:25.007466Z",
            "url": "https://files.pythonhosted.org/packages/dc/6e/41422d4d48bbadf6e5685127b388fb3237dfa3cef7e383707bf765d3338a/docker_tasks-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-06 10:39:25",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "docker-tasks"
}
        
Elapsed time: 0.15301s