Live data from Hacker News

bootc-image-builder: Build your entire OS from a Containerfile

github.com

21–30 of 34 posts

Re: bootc-image-builder: Build your entire OS from a Containerfile

#21
post #3

You can also achieve this with your current system > nix-build ' ' -A vm -I nixpkgs=channel:nixos-25.05 -I nixos-config=./configuration.nix I use nixos btw

Can this do vmdk format?

Yes, you can target VMDK, AMIs, Azure, ...

`nixos-rebuild build-image --image-variant vmware`

See https://nixos.org/manual/nixos/stable/#sec-image-nixos-rebui...

Re: bootc-image-builder: Build your entire OS from a Containerfile

#22

> A container for deploying bootable container images. ...as long as the images are in the Red Hat family (Fedora, CentOS Stream, RHEL).

I was going to try this to perhaps use it in production. Turns out the RHEL clones like Alma or Rocky doesn't have this thing in production-ready grade. All options you have now are owned by Red Hat themselves.

Re: bootc-image-builder: Build your entire OS from a Containerfile

#23

I wonder which gets more actual usage, this project or linuxkit. Does anyone have experience worth sharing with both?

If I had to wager a guess, bootc might get more actual use now that it's supported in RHEL 9.6 and 10 as "image mode". It's an exciting piece of technology, especially from the perspective of a platform engineer.

Also, bootc is a basis for the Universal Blue family of distros, especially Bazzite, which is very popular with gamers.

Re: bootc-image-builder: Build your entire OS from a Containerfile

#24

> A container for deploying bootable container images. ...as long as the images are in the Red Hat family (Fedora, CentOS Stream, RHEL).

Booting Docker images is fairly straightforward, I wrote about how to do this manually some years ago: https://blog.davidv.dev/posts/docker-based-images-on-baremet...

Re: bootc-image-builder: Build your entire OS from a Containerfile

#25

Roman Shtylman has an example of using a Dockerfile to produce a rootfs for the Jetson Nano: https://github.com/defunctzombie/jetson-nano-image-maker (2022) I've always been hesitant to use this method over debootstrap: the Ubuntu container images ("FROM ubuntu:20.04") are created from a tarball that Ubuntu's convoluted CI system spits out and I'm not confident I understand if it's somehow suitable only for a contain…

The alternative is mkosi from systemd developers

https://github.com/systemd/mkosi

However beware that they break backwards compatibility almost every 6 months. This is probably the most backwards-incompable project I know, you can't rely that the minor version update won't break your projects.

Re: bootc-image-builder: Build your entire OS from a Containerfile

#26

We also have a GUI for trying this out! https://github.com/podman-desktop/extension-bootc We’re also starting to see other projects adopt a “OS as a Container image” such as Bazzite: https://bazzite.gg/ using bootc :) Feel free to ask any questions!

Why swap from the OSTree storage to OCI? Doesn't that negate the space saving offered by OSTree having a content addressable store.

By using zstd:chunked, we get those atomic diffs at each layer using an enabled container registry. So diffs are still over the wire.

Re: bootc-image-builder: Build your entire OS from a Containerfile

#28
post #22

> A container for deploying bootable container images. ...as long as the images are in the Red Hat family (Fedora, CentOS Stream, RHEL).

I was going to try this to perhaps use it in production. Turns out the RHEL clones like Alma or Rocky doesn't have this thing in production-ready grade. All options you have now are owned by Red Hat themselves.

Just ask Neil Gompa to ship it. He doesn’t love it, but he helps everyone who asks him for advice.

Re: bootc-image-builder: Build your entire OS from a Containerfile

#29
post #23

I wonder which gets more actual usage, this project or linuxkit. Does anyone have experience worth sharing with both?

If I had to wager a guess, bootc might get more actual use now that it's supported in RHEL 9.6 and 10 as "image mode". It's an exciting piece of technology, especially from the perspective of a platform engineer. Also, bootc is a basis for the Universal Blue family of distros, especially Bazzite, which is very popular with gamers.

yeah you're probably right -- going forward the usage is likely going to be a lot higher, at the very least.

I thought of the underlying tech for those other distros being ostree more than anything but this is the better interpretation.

Re: bootc-image-builder: Build your entire OS from a Containerfile

#30

Does bootc-image-builder build Native Containers? Do Native Containers work as VM images that can be stored in an OCI Image/Artifact/Package Registry? I've been mentioning Native Containers since I realized that was how bazzite works now. Is vagrant necessary anymore if host, vm, and container images can all be signed and stored in an OCI Image store? From https://news.ycombinator.com/item?id=44137501 re: Firecracker…

What does "native containers" mean in this context?

> ostree native containers are bootable host images that can also be built and signed with a SLSA provenance attestation

From https://coreos.github.io/rpm-ostree/container/#ostree-native... :

> rpm-ostree inherits work in ostree-rs-ext to create “container native ostree” functionality. This elevates OCI/docker containers to be natively supported as a transport mechanism for bootable operating systems.

I think it means simplification of complexity and unnecessary re-duplication.

Post reply on HN