This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

autodock cron plugin

Project Description

Cron-like Plugin for autodock.

This plugin runs containers on a regular scheduled as defined by the environment variable CRON of the form m h d mon dow much like crond on many Linux/UNIX systems.

The container must first be run at least once for autodock-cron to pick up the new container and its configuration.

Note that autodock-cron makes use of the Docker API and effectively calls docker start on your container; a new container is NOT created on very run of the schedule.

Note

See: autodock

Basic Usage

Start the daemon:

$ docker run -d --name autodock prologic/autodock

Link and start an autodock plugin:

$ docker run -d --link autodock prologic/autodock-cron

Run a container of your choice and set CRON=*/1 * * * * to run every minute:

$ docker run --name hello -e CRON="*/1 * * * *" busybox sh -c 'echo Hello'

Now autodock-cron will schedule a timer to re-run this container every minute until the container is deleted and removed. After about ~3mins you should get:

$ docker logs hello
Hello
Hello
Hello
Release History

Release History

This version
History Node

0.0.2

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
autodock_cron-0.0.2-cp27-none-macosx_10_10_x86_64.whl (5.1 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Dec 26, 2015
autodock-cron-0.0.2.tar.gz (3.1 kB) Copy SHA256 Checksum SHA256 Source Dec 26, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting