The following code run from inside a Ruby script that has loaded the etcd
gem would create the necessary
keys to deploy using the above code.
client.set('/services/fooservice/ports/3021', value: 9292)
client.set('/services/fooservice/env/TESTING_URL', value: 'http//foo.example.com/asdf')
client.set('/services/fooservice/hosts/yourco-staging-foo-1.example.com', value: 'up')
client.set('/services/fooservice/hosts/yourco-staging-foo-2.example.com', value: 'up')
client.set('/services/fooservice/hosts/yourco-staging-foo-3.example.com', value: 'up')
That assigns port 3021 on the host to 9292 in the container, "http://foo.example.com/asdf" to the TESTING_URL
environment variable
and specifies three hosts to deploy to.
Currently host volume mounts don't fit well into this schema as the key doesn't work well.This needs to be figured out.