You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/bin/bash
|
|
|
|
apt update && apt upgrade -y
|
|
|
|
apt install -y git curl unzip docker.io
|
|
|
|
|
|
|
|
wget -O buildAgentFull.zip https://teamcity.nld.inker.bot/update/buildAgentFull-Linux-x64.zip
|
|
|
|
unzip buildAgentFull.zip -d /opt/agent
|
|
|
|
rm buildAgentFull.zip
|
|
|
|
wget -O /lib/systemd/system/teamcityagent.service https://git.inker.bot/inksnow/teamcity-agent-install/raw/branch/main/teamcityagent.service
|
|
|
|
|
|
|
|
sed -i 's/http:\/\/localhost:8111\//https:\/\/teamcity.nld.inker.bot\//g' /opt/agent/conf/buildAgent.properties
|
|
|
|
sed -i "s/Default Agent/$(hostname)/g" /opt/agent/conf/buildAgent.properties
|
|
|
|
|
|
|
|
systemctl enable --now docker
|
|
|
|
docker run --privileged --rm tonistiigi/binfmt --install all
|
|
|
|
docker rmi tonistiigi/binfmt
|
|
|
|
|
|
|
|
systemctl enable --now teamcityagent
|
|
|
|
wget -O /lib/systemd/system/caddy.servicehttps://raw.githubusercontent.com/caddyserver/dist/refs/heads/master/init/caddy.service
|