Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be able to customize the public ip resolver script #137

Open
grozeille opened this issue Jul 23, 2017 · 0 comments
Open

Be able to customize the public ip resolver script #137

grozeille opened this issue Jul 23, 2017 · 0 comments

Comments

@grozeille
Copy link

I'm using Rancher to deploy the docker images.
It comes with an internal DNS server, so I'm not using Consul.io and I'm disabling it with the correct env variable.

I wish to customize the public-hostname.sh script using the metadata service provided by Rancher:
http://rancher.com/docs/rancher/v1.6/en/rancher-services/metadata-service/

curl http://rancher-metadata/latest/self/host/hostname

What is the best option ?

  • Inherits from the official image and add my custom script ?
  • Patch the current script to support multiple metadata services (consul & rancher) and use an ENV variable to choose the right one ?
  • Pass the command to execute as an ENV variable ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant