Teamcity Docker Build Agent for Golang. Based on the teamcity-minimal-agent image from Jetbrains.
docker run -d --name="container_name" -e AGENT_NAME="agent_name" -e SERVER_URL="https://your.teamcity.com" codejanovic/teamcity-agent-go:latest
Within your docker-compose.yml
file create a new service:
teamcity-agent1:
container_name: teamcity-agent1
image: codejanovic/teamcity-agent-go:latest
expose:
- 9090
environment:
- SERVER_URL=https://your.teamcity.com
- AGENT_NAME=agent_name
restart: always