-
Notifications
You must be signed in to change notification settings - Fork 196
Open
Description
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 ?
yassan and 0xcafedaddy
Metadata
Metadata
Assignees
Labels
No labels