osbuild / osbuild-composer

An HTTP service for building bootable OS images.
https://www.osbuild.org
Apache License 2.0
162 stars 107 forks source link

Feedback on running osbuild in GitLab CI for CKI project #3490

Open mh21 opened 1 year ago

mh21 commented 1 year ago

Purpose was to build gitlab-runner worker VM images which are basically FC37 + moby similar to https://github.com/major/imagebuilder-fedora/.

The setup is a service container image with osbuild in it, which can then be accessed in GitLab via a socket in /builds.

main issues

misc issues

mh21 commented 1 year ago

/cc @ondrejbudai

AnthonyAus commented 9 months ago

/cc @mh21 I'm trying composer in a container, and getting setfile errors during the compose build: ... raise CalledProcessError(retcode, process.args,\nsubprocess.CalledProcessError: Command '['setfiles', '-F', '-r', '/run/osbuild/tree', '/run/osbuild/tree/etc/selinux/targeted/contexts/files/file_contexts', '/run/osbuild/tree']' returned non-zero exit status 255.\n"}]},"metadata":null},"upload_status":"failure","pipeline_names":{"build":["build"],"payload":["os","image","vmdk"]},"host_os":"rhel-92","arch":"x86_64","image_boot_mode":"hybrid","job_error":{"id":10,"reason":"osbuild build failed"}},"channel":"","queued_at":"2024-01-16T21:34:47.325360649Z","started_at":"2024-01-16T21:34:47.33913667Z","finished_at":"2024-01-16T21:35:40.764334525Z","expires_at":"0001-01-01T00:00:00Z","retries":0}

Are you able to advise tips on getting setfiles working in the container, I understand we can't enable selinux inside a podman container

mh21 commented 9 months ago

no 😕