A converter for various docker cluster formats
Project description
container-transform
container-transform is a small utility to transform various docker container formats to one another.
Currently, container-transform can parse and convert ECS task definitions and docker-compose configuration files. It can also output Systemd unit files. Any missing required parameters are printed to STDERR.
Quickstart
$ cat docker-compose.yml | container-transform -v { "family": "python-app", "volumes": [ { "name": "host_logs", "host": { "sourcePath": "/var/log/myapp" } } ], "containerDefinitions": [ { "memory": 1024, "image": "postgres:9.3", "name": "db", "essential": true }, { "memory": 128, "image": "redis:latest", "name": "redis", "essential": true }, { "name": "web", "memory": 64, "command": [ "uwsgi", "--json", "uwsgi.json" ], "mountPoints": [ { "sourceVolume": "host_logs", "containerPath": "/var/log/uwsgi/" } ], "environment": [ { "name": "AWS_ACCESS_KEY_ID", "value": "AAAAAAAAAAAAAAAAAAAA" }, { "name": "AWS_SECRET_ACCESS_KEY", "value": "1111111111111111111111111111111111111111" } ], "essential": true } ] } Container db is missing required parameter "cpu". Container redis is missing required parameter "cpu". Container web is missing required parameter "image". Container web is missing required parameter "cpu".
Docker Image
To get the docker image, run:
docker pull ambition/container-transform:latest
To run the docker image:
docker run --rm -v $(pwd):/data/ ambition/container-transform docker-compose.yml # or cat docker-compose.yml | docker run --rm -i ambition/container-transform
Installation
To install the latest release, type:
pip install container-transform
To install the latest code directly from source, type:
pip install git+git://github.com/ambitioninc/container-transform.git
Documentation
Full documentation is available at http://container-transform.readthedocs.org
License
MIT License (see LICENSE)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
container-transform-0.6.0.tar.gz
(10.9 kB
view hashes)
Built Distribution
Close
Hashes for container-transform-0.6.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cec54464b029a14ced338c405b0e2a54a2d61fcd0d02b4314287f5b5c4a65332 |
|
MD5 | 9032822d89235481ead844c91146e4a3 |
|
BLAKE2b-256 | 20f7416d59794129c5f2f10362668baead11dcb4c187538df28ebd4b288e388d |
Close
Hashes for container_transform-0.6.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d80a71d2e177a6b2c09a9032e48eec808e61d0516280330214f419127390bec5 |
|
MD5 | c5dca3634117b754581388a58ab560aa |
|
BLAKE2b-256 | 8581354a3b664b5a44f454242e7167ab6e447d0cbcf9041025c12d16be7eaf10 |