#234 Building RHEL and RHEL-UBI images with mkosi
Closed: published by rlengland. Opened by rlengland.

**Article Summary:
Mkosi is a lightweight tool to build highly-customized disk images for various distributions using distribution packages as the base. We recently added support for using RHEL UBI and full RHEL as the source of packages. For RHEL, it is necessary to get an entitlement, so we’ll show how this can be done easily using the developer subscription. With mkosi it is very easy to build an image that can function as a container or a VM or be installed on real hardware, and this can be used for testing software against RHEL or to build and deploy RHEL-based images.

**Article Description:
General plan:

  • introduction to mkosi
  • basic ideas behind mkosi and how it differs from other builders (kiwi, osbuild): declarative config, use repart files to define partitioning, use native package management for each distro, systemd tools to configure the image, unprivileged operation
  • injecting own content into an image
  • building images with RHEL UBI
  • booting the resulting image as a container and a VM
  • getting a RHEL developer license
  • building images with RHEL
  • summary

https://discussion.fedoraproject.org/t/building-rhel-and-rhel-ubi-images-with-mkosi/92658/1


Metadata Update from @rlengland:
- Issue assigned to zbyszek
- Issue tagged with: article, needs-image

https://fedoramagazine.org/wp-admin/post.php?post=39029
https://fedoramagazine.org/?p=39029
https://fedoramagazine.org/?p=39029&preview=1&_ppp=b4ddd8659e

In the preview there is an issue with rendering of [ and <. I'm not sure why they get mangled…
Also the footnote isn't shown.

Also, mkosi 19 hasn't been released yet ;) We'll make sure to do that before publication.

https://fedoramagazine.org/wp-admin/post.php?post=39029
https://fedoramagazine.org/?p=39029
https://fedoramagazine.org/?p=39029&preview=1&_ppp=b4ddd8659e

In the preview there is an issue with rendering of [ and <. I'm not sure why they get mangled…
Also the footnote isn't shown.

@zbyszek
This may be caused by the style used for the text. The preferred one is "preformatted". I've modifed the sections that were styled as "code".
The footnote shows up for me. I modified the text to "This is the note". The links seem to be working both directions for me.

Thanks, it looks very nice now.

I added some color and bolding to the code samples for visual appeal.

So I think this is mostly ready… I'll ask for a mkosi-19 release early next week and then I think this will be ready for publication.

Metadata Update from @zbyszek:
- Assignee reset
- Issue untagged with: article, needs-image

Metadata Update from @rlengland:
- Custom field editor adjusted to rlengland
- Custom field image-editor adjusted to rlengland
- Issue tagged with: article, needs-image

Metadata Update from @rlengland:
- Issue assigned to zbyszek

Metadata Update from @rlengland:
- Custom field preview-link adjusted to https://fedoramagazine.org/?p=39029&preview=1&_ppp=b4ddd8659e

Metadata Update from @rlengland:
- Custom field editor reset (from rlengland)

@zbyszek Feature image (heading image) added to the article. See if this meets your approval. :-)

@rlengland Nice, thanks!

Metadata Update from @zbyszek:
- Issue untagged with: needs-image

Metadata Update from @rlengland:
- Custom field preview-link adjusted to https://fedoramagazine.org/?p=39029&preview=true (was: https://fedoramagazine.org/?p=39029&preview=1&_ppp=b4ddd8659e)

@zbyszek We will hold publication of your article till you have confirmation that mkosi-19 release has been successful.

Let us know.

Thanks

The update is now in updates-testing. Maybe we should wait a few days until it goes stable and then publish this?

We'll wait for your notification.

https://bodhi.fedoraproject.org/updates/FEDORA-2023-22c4e34f6f has been sent for stable, so this is good to go now.

Metadata Update from @rlengland:
- Custom field editor adjusted to rlengland
- Custom field publish adjusted to 2023-11-24

The article is published and the first comments are in. Thanks!

You are welcome. Thanks for your contribution.

Issue status updated to: Closed (was: Open)
Issue close_status updated to: published

Metadata