快速导航

  1. 安装teamcity-server
  2. 安装teamcity-agent

安装步骤

安装teamcity-server

1
docker run -it -d --name teamcity-server -p 8111:8111 -v $PWD/teamcity_server/datadir:/data/teamcity_server/datadir jetbrains/teamcity-server

安装teamcity-agent

1
2
3
4
5
6
7
8
9
docker run -it -d --name teamcity-agent -e SERVER_URL="172.31.32.9:8111"  \
-v $PWD/conf:/data/teamcity_agent/conf \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $PWD/opt/buildagent/work:/opt/buildagent/work \
-v $PWD/opt/buildagent/temp:/opt/buildagent/temp \
-v $PWD/opt/buildagent/tools:/opt/buildagent/tools \
-v $PWD/opt/buildagent/plugins:/opt/buildagent/plugins \
-v $PWD/opt/buildagent/system:/opt/buildagent/system \
jetbrains/teamcity-agent

配置