Comments (8)
@j-ledoux , do you also use AGENT_AUTO_REGISTER_KEY
? The resources and hostname gets applied right after the agent is registered, I think. Let me check. Do you see the agent in the agents page showing up as pending?
from docker-gocd-agent.
What does docker exec -it CONTAINER_ID cat /go/config/autoregister.properties
say? Does it contain the variables you passed in?
See this for the reference code.
from docker-gocd-agent.
I didn't expect to get an answer so soon ! I'm not behind my computer right now... But I'm not using the key var, but still they show up as pending in the agents tab.
from docker-gocd-agent.
@j-ledoux , you need to pass along the AGENT_AUTO_REGISTER_KEY
along with the other auto register related environment variables for them to get applied. I think the readme should put a note to that effect probably.
from docker-gocd-agent.
Thank you @varshavaradarajan, I've just tried it out and it worked ! Indeed I didn't realize they needed the AGENT_AUTO_REGISTER_KEY
to be applied since they showed up in the server UI.
Thanks again
from docker-gocd-agent.
The key is an authorization for auto-register to work. Unless the key is specified, nothing else in the auto-registration will work.
from docker-gocd-agent.
Thank you guys I totally missed that point when I read the doc. BTW if I want to set the key on the server side, I will have to insert it in the config xml on build right ? It seems that there is no env var yet.
from docker-gocd-agent.
from docker-gocd-agent.
Related Issues (20)
- /home/go not created for debian 7,8, ubuntu 12.04, 14.04, 16.04 agents HOT 1
- Provide a option to write log on stdout HOT 3
- Doesn't work ! HOT 1
- Something is wrong with the latest tag HOT 4
- Why do you enforce the GO_SERVER_URL to be https? HOT 2
- GoCD agent doesn't seem to connect / work HOT 6
- Agent unable to connect to Server hosted on docker container HOT 2
- docker agent doesn't connect with docker compose? HOT 2
- Can't change user inside container (alpine-3.5)
- Cloning Materials Stalls HOT 1
- Can't get the the gocd-agent to connect to the server with Docker compose HOT 1
- Upgrade git to be 1.9.1 on all agent images shipping with a lower version HOT 2
- Provide latest fedora as an image HOT 5
- Provide debian 9 image
- Upgrade git to 2.17.1 for CVE 2018-11234 and CVE 2018-11235 HOT 1
- How do I set environment variables to agent (like /etc/default/go-agent) HOT 5
- agent binaries url not reachable HOT 2
- The gocd-agent-docker-dind image doc has a little mistake HOT 2
- perl: warning: Setting locale failed.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-gocd-agent.