Add support for docker options specific to the ambari server .#118
Add support for docker options specific to the ambari server .#118rmelick wants to merge 1 commit intosequenceiq:masterfrom
Conversation
Convenient for port forwarding 8080 to a specific port on the localhost.
|
If you want to use fixed urls. I would suggest to use the consul provided dns names. Than you can put After that you can always refer to ambari server as http://amb-server.service.consul:8080 |
|
Thanks @lalyos . I'm running Ubuntu 15.10 with Network Manager, so it's already using port 53 on my localhost for the dnsmasq. Trying to forward port 53 fails. I did figure out a workaround that might work for others using Ubuntu and Network Manager. Since the consul container won't always have the same ip address (although so far it has always been the same for me), you can't just add it to your list of dns servers once through the ui. But, you can figure out the ip of the consul
Then, you can use the nmcli command line interface to Network Manager to add it to the list of dns server This does not handle getting rid of the old ip from the list though. |
This is very convenient for port forwarding 8080 to a specific port on the localhost. This lets you use the same url to reach the ambari server even after docker restarts.