Hello,
Elastic agents are not started by users. They’re started automatically, using an elastic agent plugin. If you use one, you won’t need to set agent properties, etc. That’s the whole point of it being elastic, in that it creates an agent when needed and gets rid of it when it’s not needed any more.
You’ll need to create a cluster profile and an elastic agent profile, and associate the job with the elastic agent profile (which you mention you’ve done). Then, when the job needs to run, the information in the profile will be used to create an agent.
https://github.com/gocd-contrib/docker-swarm-elastic-agent-plugin/blob/master/INSTALL.md
Not sure which documentation you’re seeing. Also, I don’t know if the Docker Swarm plugin works on Windows – maybe someone has used it on Windows. I don’t have that experience.
Cheers,
Aravind
Hello,
I see. You’re creating your own image.
The docker image provided by GoCD (on DockerHub) does this to populate the autoregister.properties file correctly, based on environment variables passed in by the plugin when it wants to start an elastic agent. Do you do that in your image too? The values passed in should be used. That’s how the server / plugin knows that the agent it was waiting for has come up.
Cheers,
Aravind
Yes we do. Is there a way to debug our situation? It seems like a windows container problem.
Dne středa 4. listopadu 2020 v 12:21:00 UTC+1 uživatel Aravind SV napsal:Hello,
I see. You’re creating your own image.
The docker image provided by GoCD (on DockerHub) does this to populate the
autoregister.propertiesfile correctly, based on environment variables passed in by the plugin when it wants to start an elastic agent. Do you do that in your image too? The values passed in should be used. That’s how the server / plugin knows that the agent it was waiting for has come up.Cheers,
Aravind
--
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 go-cd+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/b1afe618-8db0-4023-9f12-f6578ddd9c88n%40googlegroups.com.