-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add bootc job #4367
Add bootc job #4367
Conversation
Not a review, looks like you've made a lot of progress already. But keep in mind that |
@@ -823,6 +827,7 @@ components: | |||
- gcp | |||
- gcp-rhui | |||
- guest-image | |||
- guest-image-bootc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it feasible to just keep the image types the same name, and put something in the image-request? Like as soon as you specific bootc: {something...}
in the IR with the image type being guest-image
, composer will go ahead and make an bootc'd image for you for the requested type. ITs that aren't supported would just 400 ofc.
Thanks @croissanne, It would be great to have bib handle just the manifest creation. This would also allow us to upload to multiple targets using the existing osbuild job. However, since bib is currently written as a script, this would require some refactoring. We could extract the relevant logic into callable functions or introduce a flag to output only a manifest. |
I'm sure I'm missing something here but when I read
|
@mvo5, sorry for the confusion, You're right; bib is indeed a Go program. What I meant was that it's a CLI tool wrapped in a container. I wasn't aware that there's already a flag for outputting just the manifest. Thanks for pointing that out! |
This PR is stale because it has been open 30 days with no activity. Remove "Stale" label or comment or this will be closed in 7 days. |
This PR was closed because it has been stalled for 30+7 days with no activity. |
This pull request includes:
Draft PR: Adding Disk Image Creation Job Using bootc-image-builder
This draft PR is primarily created to explore the composer architecture and understand its workflow better.
Summary
This PR introduces a new job to create disk images from a bootable container using
bootc-image-builder
(bib) as a black-box tool. The generated image artifact and manifest are stored in the output directory:/var/cache/osbuild-composer/output
. With this addition, the composer serves as a job orchestrator rather than handling the image-building logic directly.Key Changes
Modified
ImageRequest
:image_ref
to reference the bootable container.imageTypes
.ImageRequest
will be provided as payload. Further refactoring ofImageRequest
may be needed, as some fields (e.g., distribution) are not applicable for abootc
build and should not be mandatory.Image Types:
bootc-image-builder
.Testing
disk.qcow2
file in 39 seconds.Open Questions & Considerations
bib
's limited support for upload targets, how should we handle artifact uploads? One idea is to leverage the native composer job for uploads.konflux
for Building:konflux
be a better choice for the build process instead of the current setup?If you have any additional thoughts, suggestions, or concerns, please feel free to share them!