Closed flosell closed 8 years ago
Unless I'm missing something, the agent startup script already does this.
Am I reading something wrong?
It does, the problem (as I see it) is that /etc/default/go-agent
defines a GO_SERVER_URL
so that's what the startup script uses:
$ cat /etc/default/go-agent
GO_SERVER_URL=https://127.0.0.1:8154/go
AGENT_WORK_DIR=/var/lib/${SERVICE_NAME:-go-agent}
DAEMON=N
VNC=N
@flosell thanks for the pull request. Can you sign out CLA before I merge this.
Done
Newer versions of GoCD (I tried 16.7.0-3819) seem to only have
GO_SERVER_URL
in/etc/default/go-agent
so when running the container,go-agent-start.sh
can't find aGO_SERVER
configuration to replace, leaving the default configuration inGO_SERVER_URL
untouched and preventing autoconfiguration with the go-server:This PR adds support for
GO_SERVER_URL
while still supportingGO_SERVER