Skip to main content

No project description provided

Project description

## Shepherd

Shepherd provides a system for configuring and launching clusters (or flocks) of Docker containers.

Feature include:
  • YAML definition of each “flock” including environment, volumes, external networks.

  • API and HTTP API for starting, stopping, pausing and resuming instances of each flock.

  • User overrides, including environment variables and ‘descendant’ images

  • Multiple pools for managing running flocks/

  • Queuing with fixed pool size and queing (fixed size pool)

  • Persistent pool for time-slicing flock execution.

### Comparison to Docker Compose

The flock format is inspired by compose and supports a limited subset of compose spec. Unlike with Compose, which runs a single docker-compose.yml at a time, the intent of Shepherd is to manage multiple instances of each available flock, and to schedule their execution. Each instance is given a unique id which can be used to refer to the instance.

### Use Cases and Test Suite

This library does not include any specific flocks and is designed to be as generic as possible.

It only uses very small public Docker containers for the test suite, which can be run via: python setup.py test after installing with python setup.py install

For an example implementation that uses Shepherd and additional flock definitions, see https://github.com/oldweb-today/browser-shepherd

### Other dependencies

Besides Docker, Shepherd relies on Redis to store internal state (though can be used with an in-memory ‘fake’ redis as well).

Project details


Download files

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

Source Distribution

shepherd-1.0.2.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

shepherd-1.0.2-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file shepherd-1.0.2.tar.gz.

File metadata

  • Download URL: shepherd-1.0.2.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.1

File hashes

Hashes for shepherd-1.0.2.tar.gz
Algorithm Hash digest
SHA256 8037389881208d50e61743ce077f0c3fb3c41a093c908f77c9454f7364965135
MD5 1ea227bca5adb3ea9cdda9dd6471fffe
BLAKE2b-256 82c28a331befee8d9419c413fdb3b87c0246102a9d884a22258c48cecfdd0235

See more details on using hashes here.

File details

Details for the file shepherd-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: shepherd-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.1

File hashes

Hashes for shepherd-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 035e30853de4e59a8e2469cc94108de7798db95732301597f39d94eed42b726b
MD5 b68abc5645eac0b10d4531e13ea7487c
BLAKE2b-256 56b81a291e918e8be2f408b42720101ec8a3ac0ec2ae8db639732cade2fe3162

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page