1
0
Fork 0
mirror of https://code.forgejo.org/infrastructure/documentation synced 2025-01-06 03:13:53 +00:00

Merge pull request 'Forgejo runner require libvirt capabilities for LXC' (#47) from earl-warren/documentation:wip-runner into main

Reviewed-on: https://code.forgejo.org/infrastructure/documentation/pulls/47
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
This commit is contained in:
earl-warren 2024-11-28 09:44:51 +00:00
commit 0e4c77d2a6
2 changed files with 15 additions and 1 deletions

14
lxc.md
View file

@ -60,6 +60,20 @@ lxc-helpers.sh lxc_install_lxc $name $ipv4 $ipv6
lxc-helpers.sh lxc_container_user_install $name $(id -u) $USER lxc-helpers.sh lxc_container_user_install $name $(id -u) $USER
``` ```
### Docker, LXC and libvirt
```sh
name=forgejo-host
ipv4=10.85.12
ipv6=fc33
lxc-helpers.sh lxc_container_create --config "docker lxc libvirt" $name
echo "lxc.start.auto = 1" | sudo tee -a /var/lib/lxc/$name/config
lxc-helpers.sh lxc_container_start $name
lxc-helpers.sh lxc_install_docker $name
lxc-helpers.sh lxc_install_lxc $name $ipv4 $ipv6
lxc-helpers.sh lxc_container_user_install $name $(id -u) $USER
```
## Hetzner ## Hetzner
All hardware machines are running Debian GNU/linux bookworm. They are LXC hosts All hardware machines are running Debian GNU/linux bookworm. They are LXC hosts

View file

@ -3,7 +3,7 @@
The LXC container in which the runner is installed must have capabilities that support the backend. The LXC container in which the runner is installed must have capabilities that support the backend.
- docker:// needs a Docker enabled container - docker:// needs a Docker enabled container
- lxc:// needs a Docker and LXC enabled container - lxc:// needs a Docker, LXC and libvirt enabled container
The runners it contains are not started at boot, it must be done manually. The bash history has the command line to do so. The runners it contains are not started at boot, it must be done manually. The bash history has the command line to do so.