{ "info": { "author": "Cole Brumley", "author_email": "cole.brumley@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.5" ], "description": "Docker Event Scripts\n===============================\n\n*Run scripts in response to Docker events.*\n\n.. image:: https://circleci.com/gh/colebrumley/des.svg?style=svg\n.. image:: https://codecov.io/gh/colebrumley/des/branch/master/graph/badge.svg\n\n**Version**: 0.1.3\n**Author**: Cole Brumley\n\nOverview\n--------\n\nUse the ``des`` command to monitor `Docker `_ for events. When an event occurs, ``des`` executes a script with the event metadata exported to the environment.\n\nInstallation / Usage\n--------------------\n\nTo install use pip:\n\n pip install docker-event-scripts\n\nThe script directory is defined via the ``-d`` flag, and defaults to ``/etc/docker/events.d``. Scripts should be placed in sub-directories in the format ``SCRIPT_DIR/EVENT_TYPE/EVENT`` and should be marked executable.\n\nThe environment variables set during each script run are a flattened version of the raw API event dictionary. If you're writing a script for an event you're unfamiliar with, you may want to run it once with ``printenv`` to see what's available.\n\nSee the Docker `docs `_\nfor the full list of possible events.\n\nTo generate a full directory structure with dummy scripts for every event, run ``des -c``.\n\nContributing\n------------\n\nPlease submit issues or pull requests via the `GitHub repo `_.\n\n\nExample\n-------\n\nUsing the default script directory, when this example container was started using ``docker run -it --rm alpine sh``, the script at ``/etc/docker/events.d/container/start`` was executed with the following environment:\n\n\n ACTION=start\n ACTOR_ATTRIBUTES_IMAGE=alpine\n TIME=1471131434\n ACTOR_ID=467730e17a0ac265eae034d21cf633755aa57d03483ae479b623bc5569d6c274\n STATUS=start\n ACTOR_ATTRIBUTES_NAME=backstabbing_lichterman\n ID=467730e17a0ac265eae034d21cf633755aa57d03483ae479b623bc5569d6c274\n FROM=alpine\n TYPE=container\n TIMENANO=1471131434853322607", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/colebrumley/des/releases/tag/v0.1.3", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/colebrumley/des", "keywords": "docker,event,watch,monitor,script", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "docker-event-scripts", "package_url": "https://pypi.org/project/docker-event-scripts/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/docker-event-scripts/", "project_urls": { "Download": "https://github.com/colebrumley/des/releases/tag/v0.1.3", "Homepage": "https://github.com/colebrumley/des" }, "release_url": "https://pypi.org/project/docker-event-scripts/0.1.3/", "requires_dist": null, "requires_python": null, "summary": "Run scripts in response to Docker events.", "version": "0.1.3" }, "last_serial": 2292031, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "856e6b9a55ca5393cac6a29c5e0b0c0a", "sha256": "8fe7755461a4b768106c1609b2e1af690849a9e9167af909d5e8a1ce4f93fc3c" }, "downloads": -1, "filename": "docker-event-scripts-0.1.0.tar.gz", "has_sig": false, "md5_digest": "856e6b9a55ca5393cac6a29c5e0b0c0a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5266, "upload_time": "2016-08-13T20:26:02", "url": "https://files.pythonhosted.org/packages/52/9d/4f3b4ac4873978c7d116b13f40e6b14ac7cb177646d7c3f4e908530188bd/docker-event-scripts-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "0730f5f52b0dbce7fe052389c3d6c88c", "sha256": "badfcc57a1b4d98a8113791dae6db238c4fce5b5e64e844e6ac7d1a314207d89" }, "downloads": -1, "filename": "docker-event-scripts-0.1.1.tar.gz", "has_sig": false, "md5_digest": "0730f5f52b0dbce7fe052389c3d6c88c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5971, "upload_time": "2016-08-14T01:09:29", "url": "https://files.pythonhosted.org/packages/79/19/51268a2a08444abbb99e29de06132ea611817657d42e4055d569854af4d4/docker-event-scripts-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "74b06deaa4a8d3bed664ee22ca96edab", "sha256": "a0ba04f9b1ab0f1b4330bea013ea674f5144c60cdb2d4ba016c04a4ac66f8bff" }, "downloads": -1, "filename": "docker-event-scripts-0.1.2.tar.gz", "has_sig": false, "md5_digest": "74b06deaa4a8d3bed664ee22ca96edab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5962, "upload_time": "2016-08-20T02:33:27", "url": "https://files.pythonhosted.org/packages/53/a4/9e91250c95f517aed6b486a4e0510846b64d99a3a505ef56ea952780ede8/docker-event-scripts-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "ef08d101416d1a0515ccbeecb65d7091", "sha256": "450e3ac195ae064e7507b77788079cc5427045c37b62fd0e0f40f89f9f4dc31a" }, "downloads": -1, "filename": "docker-event-scripts-0.1.3.tar.gz", "has_sig": false, "md5_digest": "ef08d101416d1a0515ccbeecb65d7091", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5979, "upload_time": "2016-08-20T02:50:38", "url": "https://files.pythonhosted.org/packages/46/3d/2cc1646a79deccdbf3d41b5f134a94308648f840e4bce45a3dacbb5211b7/docker-event-scripts-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ef08d101416d1a0515ccbeecb65d7091", "sha256": "450e3ac195ae064e7507b77788079cc5427045c37b62fd0e0f40f89f9f4dc31a" }, "downloads": -1, "filename": "docker-event-scripts-0.1.3.tar.gz", "has_sig": false, "md5_digest": "ef08d101416d1a0515ccbeecb65d7091", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5979, "upload_time": "2016-08-20T02:50:38", "url": "https://files.pythonhosted.org/packages/46/3d/2cc1646a79deccdbf3d41b5f134a94308648f840e4bce45a3dacbb5211b7/docker-event-scripts-0.1.3.tar.gz" } ] }