January 2019
Intermediate to advanced
520 pages
14h 32m
English
To use the TeamCity server for builds, we need at least one agent. It works as a sibling container in Docker, and we also declare it as a service, but provide the SERVER_URL environment variable targeted to the CI server we created before:
agent: build: ./images/rust-slave environment: - SERVER_URL=http://teamcity:8111 volumes: - ./teamcity/agent:/data/teamcity_agent/conf
There is the official image for an agent, but we don't use it directly here, because we need to add the Rust compiler and extra tools, which is why we build our own image for this service. Also, we need to provide a persistent volume to it to keep the configuration of the running agent that will be connected to the server.
Agents don't need to open ports, because ...
Read now
Unlock full access