Metadata-Version: 2.1
Name: ecs-consul-reg
Version: 0.0.8
Summary: AWS ECS Consul Registration
Home-page: https://github.com/hampsterx/ecs-consul-reg
Author: Tim van der Hulst
Author-email: tim.vdh@gmail.com
License: Apache2
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 2
Description-Content-Type: text/markdown
Requires-Dist: PyYAML
Requires-Dist: python-consul (==1.1.0)
Requires-Dist: docker (==3.5.0)
Requires-Dist: click (==6.7)
Requires-Dist: simple-json-log-formatter (==0.5.3)

# ecs consul reg

Docker container registration for Consul on AWS ECS.

You may want to use [registrator](https://github.com/gliderlabs/registrator) instead.
Main differences:

- python based (If I was comfortable with Golang I would probably just contribute to registrator instead)
- intended to be run on ec2 not within docker
- keeps detailed logs (json file)
- Uses Docker Health instead of running it's own checks
    - @see [gliderlabs:issues/578](https://github.com/gliderlabs/registrator/issues/578)

## Install on Amazon ECS-Optimized Amazon Linux AMI 2

Pip is not installed:

    curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
    python get-pip.py

## Install

    pip install ecs-consul-reg

## Run

    ecs-consul-reg

## Initctl script

    todo~

## Options

    CONSUL_HOST=127.0.0.1
    CONSUL_PORT=8500

Options can be supplied as env or in yaml config.

```
Usage: main.py [OPTIONS]

Options:
  -c, --config TEXT
  -lf, --logfile TEXT
  -ll, --loglevel TEXT
  --help                Show this message and exit.
```







