Need an option to add network to agent container
remy-tiitre opened this issue · 1 comments
When you enter your swarm service name into "Go Server URL (this is passed to the agents, so don't use localhost):*" and try to save it, it will give an error "We're sorry, but something went wrong."
Most likely the validation is too strict - should give better error though. Issue is most likely that swarm service names have _ in domain part, for example https://gocd_server:8154/go
At first I tried just https://server:8154/go, but that returned java.net.UnknownHostException: server: Try again in agents logs.
Argh, I think its an issue that gocd_server is in its own network and I have no option to provide the network name to agents
I have swarm setup so that gocd_server belongs to 2 networks - internal and proxy. proxy network has HAProxy installed and http://some.nice.url/go will proxy gocd_server:8153, :8154 is accessible from internal network only. It seems that I have to change this logic, unless I can provide the network to agents.