1
0
Fork 0
mirror of https://code.forgejo.org/infrastructure/documentation synced 2024-11-21 11:01:15 +00:00

Merge pull request 'add aburayama @ codeberg in the host pool' (#45) from earl-warren/documentation:wip-codeberg-runner into main

Reviewed-on: https://code.forgejo.org/infrastructure/documentation/pulls/45
This commit is contained in:
earl-warren 2024-11-11 16:53:41 +00:00
commit 971bfed24b
2 changed files with 42 additions and 2 deletions

View file

@ -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.

View file

@ -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
```