Sign inSign up

trnubo/etcd-links

By trnubo

Updated about 11 years ago

Image
0

7.5K

trnubo/etcd-links repository overview

This image creates Docker like links with data from etcd and registrator.

This is really a bit of a hack so we can get application that are not etcd or service discovery aware working on a multi docker host environment. You should look at a ambassador patten or make your application aware of service discovery directly.

Usage

Usage: run.py [OPTIONS] [LINKS]...

  Main function

Options:
  --etcdctl-peers TEXT  ETCD peers list
  --services-base TEXT  Base path to services. Normally /services
  --name TEXT           Name of the container we're creating  [required]
  --output TEXT         Output environment file
  --maps TEXT
  --help                Show this message and exit.
Limitations

Not all of the linked containers environment variables are exposed to the new container like docker does on a single host.

Not quite enough information is recorded into etcd by registrator to match the docker link environment variables but it should generally be sufficient.

Currently if there are multiples of the same service registered in etcd only the first one will be saved into the environment.

Tag summary

Content type

Image

Digest

sha256:b88817fd6

Size

18.4 MB

Last updated

about 11 years ago

docker pull trnubo/etcd-links