JetBrains / teamcity-docker-agent

TeamCity agent docker image sources
https://hub.docker.com/r/jetbrains/teamcity-agent/
Apache License 2.0
77 stars 64 forks source link

Question: How to properly restart the build agent? #20

Closed pstephenson02 closed 6 years ago

pstephenson02 commented 6 years ago

Hi there,

I would like to use this image (specifically the ubuntu image), but in my case, I need to add a custom, self-signed SSL certificate to the java cacert store and then restart the build agent process in order to pick up the new cert. What is the best way to restart the build agent process? Would it be easiest to simply reboot the container all together? It looks like there is also a hook in /opt/buildagent/bin/agent.sh to stop and start the agent. I just want to be sure that whichever way I decide to do it that it has the appropriate configuration/environment variables it needs to run properly. Thank you in advance

pstephenson02 commented 6 years ago

Closing this issue. I think I just fundamentally misunderstood how Dockerfiles work ;/