Gitlab Runner Using Podman to Build BootC Images

Hi All,

I have been playing with bootc which has been really exciting and I am looking at moving my manual builds to a self-hosted GitLab server. I have a GitLab runner using podman as a non-privilege user. I have been reading bits and pieces trying to get the runner configured to enable podman-in-podman. Since this community seems to be the most practiced in this space I am hoping someone can advise on how I should configure my runner for this to work. At the moment my failed config.toml looks as follows;

concurrent = 1
check_interval = 0
connection_max_age = “15m0s”
shutdown_timeout = 0

[session_server]
session_timeout = 1800

[[runners]]
name = “podman-runner”
url = “https://gitlab.example.com
token = “token”
token_obtained_at = 2024-11-11T10:51:54Z
token_expires_at = 0001-01-01T00:00:00Z
executor = “docker”
environment = [“FF_NETWORK_PER_BUILD=1”]
[runners.docker]
host = “unix:///run/user/987/podman/podman.sock”
tls_verify = false
image = “quay.io/podman/stable”
privileged = true
security_opt = [“label:disable”]
devices = [“/dev/fuse”]
disable_cache = false
disable_entrypoint_overwrite = false
oom_kill_disable = false
volumes = [“/home/gitlab-runner/.local/share/containers/:/var/lib/containers”,“/cache”]
shell = “bash”

Other then my additions to config.toml my runner is setup as per the GitLab official guidance for a docker executor using podman.

Appreciate if any could point out my error or provide a working config.toml

Thanks,

Adam