date | author | title | url | tags | categories | toc | draft | |||
---|---|---|---|---|---|---|---|---|---|---|
2022-05-01 09:25:56 +0800 |
Rustle Karl |
部署TeamCity 持续集成服务 |
posts/git/tools/teamcity |
|
|
true |
false |
现在的做法是主服务安装在 Docker,Agent 安装在宿主机,方便直接访问其他资源。
wget https://download.jetbrains.com/teamcity/TeamCity-2022.04.tar.gz
mkdir ~/bin
tar -zxvf TeamCity-2022.04.tar.gz -C ~/bin
不能运行在 ARM 上。
~/bin/TeamCity/bin/teamcity-server.sh start
java -version
http://ubuntu-amd64:8111/favorite/projects
wget http://ubuntu-amd64:8111/update/buildAgentFull.zip
apt install p7zip-full -y
mkdir ~/bin/TeamCityAgent
7z x buildAgentFull.zip -o/root/bin/TeamCityAgent -aou
cd ~/bin/TeamCityAgent
# 修改服务主机的地址
~/bin/TeamCityAgent/bin/agent.sh start
docker run -e SERVER_URL="<url to TeamCity server>" \
-v <path to agent config folder>:/data/teamcity_agent/conf \
jetbrains/teamcity-agent
https://www.jetbrains.com/help/teamcity/configuring-proxy-server.html
TEAM_CITY_PATH=/root/bin/TeamCity
mv $TEAM_CITY_PATH/webapps/ROOT $TEAM_CITY_PATH/webapps/teamcity
~/bin/TeamCity/bin/teamcity-server.sh start
~/bin/TeamCity/bin/teamcity-server.sh stop
~/bin/TeamCityAgent/bin/agent.sh start
~/bin/TeamCityAgent/bin/agent.sh stop