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.

26 lines
1.1 KiB
Bash

5 months ago
#!/bin/ash
apk update && apk upgrade
apk add bash git curl unzip docker
5 months ago
wget -O buildAgentFull.zip https://teamcity.nld.inker.bot/update/buildAgentFull-Linux-x64.zip
5 months ago
unzip buildAgentFull.zip -d /opt/agent
rm -f buildAgentFull.zip
5 months ago
5 months ago
wget -O zulu17.50.19-ca-jdk17.0.11-linux_musl_x64.tar.gz https://cdn.azul.com/zulu/bin/zulu17.50.19-ca-jdk17.0.11-linux_musl_x64.tar.gz
tar -xzvf zulu17.50.19-ca-jdk17.0.11-linux_musl_x64.tar.gz
rm -rf zulu17.50.19-ca-jdk17.0.11-linux_musl_x64.tar.gz /opt/agent/jre
mv zulu17.50.19-ca-jdk17.0.11-linux_musl_x64 /opt/agent/jre
wget -O /etc/init.d/teamcityagent https://git.inker.bot/inksnow/teamcity-agent-install/raw/branch/main/alpine/teamcityagent
chmod +x /etc/init.d/teamcityagent
5 months ago
sed -i 's/http:\/\/localhost:8111\//https:\/\/teamcity.nld.inker.bot\//g' /root/agent/conf/buildAgent.properties
sed -i "s/Default Agent/$(hostname)/g" /root/agent/conf/buildAgent.properties
5 months ago
rc-update add docker
rc-service docker start
5 months ago
docker run --privileged --rm tonistiigi/binfmt --install all
docker rmi tonistiigi/binfmt
5 months ago
rc-update add teamcityagent
rc-service teamcityagent start