Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ DATADIR := /usr/share/$(NAME)
BINDIR := /usr/bin
ETCDIR := /etc
TEMPLATES := centos_7 centos_8 centos_stream_8 sl_7 rocky_8 alma_8 \
centos_stream_9 rocky_9 alma_9
centos_stream_9 rocky_9 alma_9 \
gh_runner

SHELL:=bash

Expand Down
56 changes: 56 additions & 0 deletions gh_runner/kickstart.ks
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#auth --enableshadow --passalgo=sha512 --kickstart
autopart --type=lvm --fstype=ext4 --nohome
bootloader --location=mbr --timeout=1 --append="console=tty0 console=ttyS0,115200"
cdrom
clearpart --all --initlabel
eula --agreed
firewall --disabled
firstboot --disabled
keyboard us
lang en_US.UTF-8
network --bootproto dhcp
reboot
rootpw --iscrypted $1$22074107$h/Rm55DAZ37/ZhaVMPmFP/
selinux --permissive
services --enabled=NetworkManager,sshd
skipx
text
timezone --utc America/Chicago
timesource --ntp-server ntp1.cs.wisc.edu
timesource --ntp-server ntp2.cs.wisc.edu
timesource --ntp-server ntp3.cs.wisc.edu
zerombr

%packages --inst-langs=en_US.utf8 --excludedocs
@core
at
bzip2
findutils
git-core
gzip
make
policycoreutils-python-utils
sed
libicu
tar
%end


%post --log=/root/ks.log
yum -y install yum-utils
yum -y config-manager --enable extras
yum -y config-manager --enable crb
yum -y config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
yum -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
yum -y distro-sync
systemctl enable docker
date > /etc/creation_date
mkdir /mnt/user
echo >> /etc/ssh/sshd_config
echo PermitRootLogin yes >> /etc/ssh/sshd_config
useradd -m runner
runuser -u runner -- /bin/sh -c 'mkdir /home/runner/actions-runner; cd /home/runner/actions-runner; pwd; curl -o actions-runner-linux-x64-2.309.0.tar.gz -L https://github.com/actions/runner/releases/download/v2.309.0/actions-runner-linux-x64-2.309.0.tar.gz; tar xvzf ./actions-runner-linux-x64-2.309.0.tar.gz'
/home/runner/actions-runner/bin/installdependencies.sh
echo "runner ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
%end
7 changes: 7 additions & 0 deletions gh_runner/vars.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"cpu" : "host",
"disk_size" : "10000M",
"iso_checksum" : "sha256:00c91b923997c44822595998deb0cebcfaa53e93c2bed8745b04516badff431f",
"iso_url" : "http://ord.mirror.rackspace.com/almalinux/9.2/isos/x86_64/AlmaLinux-9.2-x86_64-dvd.iso",
"kickstart" : "gh_runner/kickstart.ks"
}
3 changes: 2 additions & 1 deletion vmu-rebuild-all
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ set -o pipefail
set -o nounset

TEMPLATES=(centos_7 sl_7 centos_stream_8 rocky_8 alma_8
centos_stream_9 rocky_9 alma_9)
centos_stream_9 rocky_9 alma_9
gh_runner)

DEPLOY_DIR=/staging/osg-images
LOG_DIR=/var/log/vmu-packer
Expand Down