Giter Club home page Giter Club logo

Comments (6)

cytopia avatar cytopia commented on July 4, 2024

@robertmiles3 can you add the docker run command, so I can see if this is left or right side of the equal sign for EXTRA_HOSTS

from docker-bind.

robertmiles3 avatar robertmiles3 commented on July 4, 2024

It's like this...

EXTRA_HOSTS=sandbox.example.com=internal-foo-bar-baz-1234567890.us-east-1.elb.amazonaws.com

But, looking at your code for this, it may not work anyway. It looks like you just resolve the cname to an IP and add that IP to the list. However, AWS ALB's rotate IPs randomly so it likely won't work.

from docker-bind.

cytopia avatar cytopia commented on July 4, 2024

What does host internal-foo-bar-baz-1234567890.us-east-1.elb.amazonaws.com output (if you're inside AWS)?

from docker-bind.

robertmiles3 avatar robertmiles3 commented on July 4, 2024

It outputs an IP address, but 5 minutes later it could be a different IP address due to high-availability stuff. Per AWS, "Our support for high availability and multiple availability zones, as well as our ability to dynamically scale your load balancing capacity leverages our ability to change the set of IP addresses behind the DNS name from time to time."

from docker-bind.

cytopia avatar cytopia commented on July 4, 2024

OK I figured. The above error is due to wrong regex checking the CNAME.

The changing IP addresses is a different issue.

from docker-bind.

cytopia avatar cytopia commented on July 4, 2024

Regex fix PR is open. Keep in mind that you need to quote the values for EXTRA_HOSTS like so:

EXTRA_HOSTS='sandbox.example.com=internal-foo-bar-baz-1234567890.us-east-1.elb.amazonaws.com'

from docker-bind.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.