hmalphettes / docker-route53-dyndns Goto Github PK
View Code? Open in Web Editor NEWAutomated DynDNS for Docker containers using docker-gen and Route53
Automated DynDNS for Docker containers using docker-gen and Route53
Hi,
I'm trying to register my containers to a private zone but am receiving a cryptic error and not sure what the problem is:
$ docker run --rm --name route53 -v /var/run/docker.sock:/tmp/docker.sock -v /root/.aws:/root/.aws -e PUBLIC_IP=$(hostname -i) -e DRY_ROUTE53=true -e PRIVATE_TOP_ZONES=staging.aws -t hmalphettes/docker-route53-dyndns /usr/local/bin/docker-gen -watch -notify "/bin/sh -x /tmp/cli53routes" /app/cli53routes.tmpl /tmp/cli53routes
2015/08/26 21:03:00 Generated '/tmp/cli53routes' from 3 containers
2015/08/26 21:03:00 Running '/bin/sh -x /tmp/cli53routes'
2015/08/26 21:03:00 Error running notify command: /bin/sh -x /tmp/cli53routes, exit status 1
2015/08/26 21:03:00 + [ -z 10.1.20.102 ]
+ [ -z 10.1.20.102 -o not found = 10.1.20.102 ]
+ [ -z staging.aws ]
2015/08/26 21:03:00 Watching docker events
Please note that only 1 of my containers has VIRTUAL_HOST variable set and it is set to VIRTUAL_HOST=amqp.staging.aws
I also get the same error without the dry run option.
Thanks for your help!
Yannis
I'd like to use this with with route53 alias or cname records pointing to an ELB.
I'd prefer to handle nginx routing on my own. Is this possible?
Also, an ideal use case for me would be delegating 2 records to the container. One an A record or CNAME on the private hosted zone (I say cname because the underlying host already has an A record, so an alias record pointing to it is preferable). The other being an optional public ALIAS or CNAME to an ELB or router node.
I have a hosted zone that is xxx.id.au and i assume there are many other 3rd level domains out there. Any chance you could modify this to compare the VIRTUAL_HOST to the list of hosted zones and find the match based on the VIRTUAL_HOST ending with the hosted zone?
If it is too hard i will buy another domain name because this container makes things so much easier. fantastic idea.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.