Go to file
2024-11-14 22:08:47 -07:00
.config/systemd/user build: first working runner 2024-08-30 00:52:00 -06:00
act_runner build: first working runner 2024-08-30 00:52:00 -06:00
etc/systemd/system build: first working runner 2024-08-30 00:52:00 -06:00
.bashrc build: bashrc for systemd --user and dbus 2024-08-31 04:37:31 -06:00
README.md build: testing if gitea mirror will autopsuih to other instance 2024-11-14 22:08:47 -07:00

Table of Contents

Zavage act_runner for Gitea


Included is what's needed for act_runner to run on servbox host and provide a docker-runner to Gitea instance. This is systemd units and configuration.

Installation

  1. provision gitea-runner user, with home directory and clone this repo inside of it.
  2. Install docker-rootless, provision sid and gid ranges /etc/subuid and /etc/subgid need configured
# as root:
echo "gitea-runner:296608:65536" | tee -a /etc/subuid
echo "gitea-runner:296608:65536" | tee -a /etc/subgid

# and verify (su -l gitea-runner):
id =u
whoami
grep ^$(whoami): /etc/subuid
grep ^$(whoami): /etc/subgid
  1. Install 3 systemd units, 2 user-level and 1-system level to run dbus, docker (rootless), and act_runner
  2. Install .bashrc or .profile config for user to connect to dbus, needed for systemd
  3. Start and enable the systemd units/services
  4. Verify it works
su -l gitea-runner
systemctl --user [start/enable/status] docker.service
systemctl --user [start/enable/status] dbus-gitea-runner.service


# system-level: (run as root)
systemctl [start/enable/status] gitea-act-runner.service

# Check:
journalctl --user -u docker.service
journalctl gitea-act-runner.service

See also