Skip to content

Specifying The Custom Runner Server Setup Script

vzakaznikov edited this page Jan 23, 2024 · 4 revisions

You can specify a custom runner server setup script using the --setup-script option.

For example,

custom_setup.sh:
#!/bin/bash
set -x
echo "Create and configure ubuntu user"
adduser ubuntu --disabled-password --gecos ""
echo "%wheel   ALL=(ALL:ALL) NOPASSWD:ALL" >> /etc/sudoers
addgroup wheel
addgroup docker
usermod -aG wheel ubuntu
usermod -aG sudo ubuntu
usermod -aG docker ubuntu
# custom setup
apt-get -y update
apt-get -y install ca-certificates curl gnupg lsb-release python3-pip git unzip
command:
github-hetzner-runners --setup-script ./custom_setup.sh
Clone this wiki locally