Skip to content

Be able to customize the public ip resolver script #137

Description

@grozeille

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 ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions