Giter Club home page Giter Club logo

Comments (8)

varshavaradarajan avatar varshavaradarajan commented on June 16, 2024

@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.

ketan avatar ketan commented on June 16, 2024

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.

j-ledoux avatar j-ledoux commented on June 16, 2024

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.

varshavaradarajan avatar varshavaradarajan commented on June 16, 2024

@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.

j-ledoux avatar j-ledoux commented on June 16, 2024

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.

ketan avatar ketan commented on June 16, 2024

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.

j-ledoux avatar j-ledoux commented on June 16, 2024

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.

ketan avatar ketan commented on June 16, 2024

from docker-gocd-agent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.