Has anyone had any success deploying a gocd and agents as a docker stack 
and getting the agents to auto register?
I can get the autoregister to work if I deploy the stack, 
then wait until the server is running, 
look up the value of agentAutoRegisterKey from 
/godata/config/cruise-config.xml in the server using this command docker 
exec gocd_gocd-server.1.sek2z6bqj7iag5x6w8rglifej sed -n -e 
 's/.*agentAutoRegisterKey="\([a-z0-9\-]*\)".*/\1/p' 
/godata/config/cruise-config.xml
updating the environment variable AGENT_AUTO_REGISTER_KEY in 
docker-stack.yml file 
and then docker deploy again to update the agents with the key

Is there any mechanism to tell the server up front before it starts what 
key to use?

Steve

-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to