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.

18 lines
765 B
Bash

5 months ago
#!/bin/bash
5 months ago
dnf update -y
dnf install -y policycoreutils-python-utils setroubleshoot-server git wget 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 buildAgentFull.zip
5 months ago
wget -O /lib/systemd/system/teamcityagent.service https://git.inker.bot/inksnow/teamcity-agent-install/raw/branch/main/teamcityagent.service
5 months ago
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
5 months ago
5 months ago
systemctl enable --now docker
5 months ago
docker run --privileged --rm tonistiigi/binfmt --install all
docker rmi tonistiigi/binfmt
5 months ago
5 months ago
systemctl enable --now teamcityagent