diff --git a/README.md b/README.md index 09d7b83..c4de4bc 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,23 @@ There is a [dedicated chatroom](https://matrix.to/#/#forgejo-ci:matrix.org). A m - Installing a [Forgejo runner in an LXC container](runner-lxc.md) - Managing the [Octopuce host](octopuce.md) +## aburayama @ codeberg + +Dedicated to hosting Forgejo runners. + +See [the codeberg documentation](https://codeberg.org/Codeberg-Infrastructure/meta#ssh-access) for SSH access. + +```ssh-config +Host *.lxc.aburayama.local + User earl + ProxyJump aburayama.m.codeberg.org + +Host *.m.codeberg.org + User jump + Port 19198 + ForwardAgent yes +``` + ## hetzner{05,06} https://hetzner05.forgejo.org & https://hetzner06.forgejo.org run on [EX44](https://www.hetzner.com/dedicated-rootserver/ex44) Hetzner hardware. diff --git a/runner-lxc.md b/runner-lxc.md index 6b328f7..8e876d6 100644 --- a/runner-lxc.md +++ b/runner-lxc.md @@ -10,7 +10,7 @@ The runners it contains are not started at boot, it must be done manually. The b ### Installation ```shell -version=3.5.0 +version=4.0.1 sudo wget -O /usr/local/bin/forgejo-runner-$version https://code.forgejo.org/forgejo/runner/releases/download/v$version/forgejo-runner-$version-linux-amd64 sudo chmod +x /usr/local/bin/forgejo-runner-$version echo 'export TERM=xterm-256color' >> .bashrc @@ -35,10 +35,33 @@ containers, the labels in `config.yml` should be ```shell name=myrunner mkdir -p $DIR ; cd $DIR -forgejo-runner generate-config > config-$name.yml +forgejo-runner-$version generate-config > config-$name.yml ## edit config-$name.yml and adjust the `labels:` ## Obtain a $TOKEN from https://$DIR forgejo-runner-$version register --no-interactive --token $TOKEN --name runner --instance https://codeberg.org forgejo-runner-$version --config config-$name.yml daemon |& cat -v > runner.log & ``` +### Removing old docker images + +[docuum](https://github.com/stepchowfun/docuum) + +```sh +curl https://raw.githubusercontent.com/stepchowfun/docuum/main/install.sh -LSfs | sh +sudo tee /etc/systemd/system/docuum.service <<'EOF' +[Unit] +Description=Docuum +After=docker.service +Wants=docker.service + +[Service] +Environment='THRESHOLD=10 GB' +ExecStart=/usr/local/bin/docuum --threshold ${THRESHOLD} +Restart=on-failure + +[Install] +WantedBy=multi-user.target +EOF +sudo systemctl enable docuum --now +sudo journalctl --follow --unit docuum +```