Cache buildagent directories for ephermel agents
Hi
I'm using Kubernetes Cloud Profiles to start agents on-demand. But every time an agent pod starts, Teamcity tells me that startup is slow because the agent has outdated or missing plugins.
Can this be resolved by mounting volumes on the buildagent directories and sharing them across agents.
The directories that I'm thinking to mount are
- /opt/buildagent/plugins
- /opt/buildagent/system
- /opt/buildagent/work
- /opt/buildagent/tools
- /data/teamcity_agent/conf ❓
Which ones would be safe to share across agents?
Thanks
Please sign in to leave a comment.
Please refer to the TeamCity agent Docker image documentation for information on mounting directories: https://hub.docker.com/r/jetbrains/teamcity-agent
All the directories can be mounted; however, there may be concerns regarding some of them. There is an example in the documentation with some additional information: https://hub.docker.com/r/jetbrains/teamcity-agent#using-the-docker-from-the-host
Please note, that, as per the documentation, data/teamcity_agent/conf binding should map a different directory for every new agent you create.
Best regards,
Anton