docker-tasks-0.0.8
توضیحات
Utilze docker exec to run commands on yaml base config
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | docker-tasks-0.0.8 |
| نام | docker-tasks |
| نسخه کتابخانه | 0.0.8 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Reimund Klain |
| ایمیل نویسنده | reimund.klain@condevtec.de |
| آدرس صفحه اصلی | https://github.com/daymien/docker-tasks |
| آدرس اینترنتی | https://pypi.org/project/docker-tasks/ |
| مجوز | BSD |
|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
نیازمندی
| مقدار | نام |
|---|---|
| - | docker |
| - | pyaml |
نحوه نصب
نصب پکیج whl docker-tasks-0.0.8:
pip install docker-tasks-0.0.8.whl
نصب پکیج tar.gz docker-tasks-0.0.8:
pip install docker-tasks-0.0.8.tar.gz