ARPA-SIMC / moncic-ci

Continuous integration tool and development helper.
GNU General Public License v2.0
2 stars 0 forks source link

Rootless operation #81

Open spanezz opened 1 year ago

spanezz commented 1 year ago

It may be possible to run enough containerization without needing root. It's worth at least investigating

spanezz commented 1 year ago

https://wiki.archlinux.org/title/systemd-nspawn#Unprivileged_containers

systemd-nspawn supports unprivileged containers, though the containers need to be booted as root.

https://github.com/systemd/systemd/issues/10680 explains that this can be done using machinectl and systemd-machined, but it still requires polkit configuration, and would need to implement a different way to run tasks in the container

Alternatively, we can add a backend using libvirt, along the lines of debvm, and then run tasks in it with something like mitogen