Skip to main content

A converter for various docker cluster formats

Project description

https://travis-ci.org/ambitioninc/container-transform.png https://coveralls.io/repos/ambitioninc/container-transform/badge.png?branch=develop Latest PyPI version Number of PyPI downloads

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. Any missing required parameters are printed to STDERR.

Quickstart

$ cat docker-compose.yml | container-transform  -v
[
    {
        "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"
        ],
        "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".

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


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.4.tar.gz (9.9 kB view hashes)

Uploaded source

Built Distribution

Supported by

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