- Set up azure cli on server
Code:
sudo dnf install -y https://packages.microsoft.com/config/rhel/9.0/packages-microsoft-prod.rpm sudo dnf install azure-cli
Code:
sudo az aks install-cli
Code:
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 sudo chmod 700 get_helm.sh sudo ./get_helm.sh sudo chmod 777 /usr/local/bin/helm
Code:
sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-engine \ podman \ runc sudo yum install -y yum-utils sudo yum-config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.repo sudo yum install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin sudo systemctl start docker sudo usermod -aG docker $USER sudo chmod 666 /var/run/docker.sock
Code:
mkdir actions-runner && cd actions-runner curl -o actions-runner-linux-x64-2.315.0.tar.gz -L https://github.com/actions/runner/releases/download/v2.315.0/actions-runner-linux-x64-2.315.0.tar.gz echo "6362646b67613c6981db76f4d25e68e463a9af2cc8d16e31b feabe39153606a0 actions-runner-linux-x64-2.315.0.tar.gz" | shasum -a 256 -c tar xzf ./actions-runner-linux-x64-2.315.0.tar.gz ./config.sh --url https://github.com/your-org --token xxxxxxxxxxxxxxxxxxxxx sudo ./svc.sh install sudo ./svc.sh start sudo ./svc.sh status chcon system_u:object_r:usr_t:s0 runsvc.sh