Build Docker images, and run Docker containers in Fabric.
With a few preparations, Docker images can easily be generated and tested on development machines, and transferred on to a production environment. This package supports managing container configurations along with their dependencies within Fabric-based deployments. DockerFiles can also be easily implemented in Fabric tasks.
Local Docker clients can be controlled directly through docker-py. Remote Docker API services make use of Fabric’s SSH connection.
This project is based on Docker-Map, and adapts its container configuration methods.
As with Docker-Map, container configurations can be generated as objects, updated from Python dictionaries, or imported from YAML files in order to control remote clients via the API. Docker-Fabric includes the following enhancements:
DockerFabricClient adds Fabric-like logging in the context of container instances on top of Fabric hosts, and enables automatic creation of tunnel connections for access to a remote Docker host using Fabric’s SSH connection. By using the tool socat, the Docker client can access a remote service without re-configuration.
DockerClientConfiguration adds the capability of running containers to Fabric hosts with specific Docker settings for each, e.g. the version number.
ContainerFabric is a simple wrapper that combines Docker-Map’s DockerFabricClient, DockerClientConfiguration objects, and container maps.
The following features are provided by running the appropriate commands on a remote Docker command line:
All essential container actions (create, start, stop, remove) and some advanced (e.g. update) can be triggered from the command line as Fabric tasks and executed on the remote service, e.g. via SSH.
Additionally the following tasks are included in this package, that can be run by Fabric directly:
Further contributions are maintained in [CONTRIBUTIONS.md] (https://github.com/merll/docker-fabric/blob/master/CONTRIBUTIONS.md) of the project.
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|
|docker_fabric-0.4.2-py2.7.egg (68.0 kB) Copy SHA256 Checksum SHA256||2.7||Egg||Feb 14, 2017|
|docker-fabric-0.4.2.tar.gz (24.1 kB) Copy SHA256 Checksum SHA256||–||Source||Feb 14, 2017|