Open mh21 opened 1 year ago
/cc @ondrejbudai
/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
no 😕
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
--socket
misc issues
--pass-aws-environment-variables
composer-cli --json compose info