Skip to content

containers/podman-machine-wsl-os

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cirrus CI - Default Branch Build Status

Podman Machine WSL OS

Source code to build and release the Fedora-based VM image for WSL.

The image is distributed as a zstd compressed .tar file for both amd64 and arm64 architectures.

The CI is triggered every 3 hours and at every push to the main branch.

At every update of the disk image:

Build Process Details

The source code that builds the WSL image for podman is in this Cirrus CI manifest.

To build the content of the Fedora-based disk the CI execute the following steps:

  • Pulls the latest docker.io/library/fedora
  • Starts a container named fedora-update and execute the commands to install Podman and other packages

After that, if the are no changes compared to the last time the CI has been executed (i.e. neither the docker.io/library/fedora image nor Podman and other packages have been updated), the build stops. When there are some changes, then a new image disk is built:

  • Export the fedora-update container content to the file rootfs.tar (podman export --output rootfs.tar fedora-update)
  • Remove the content of the file /etc/resolv.conf in rootfs.tar and compress it using zstd

If at least one of the 2 images (amd64 and arm64) has been updated then the CI publishes a new release:

That's done for both amd64 and arm64 architectures. And v5.1 and v5.2 zstd files are identical.

The Delay with Podman Releases

WSL disk images build is disconnected to Podman release process.

The WSL disk image build is triggered every 3 hours and it looks for a new version of Podman. But it looks for an update on Fedora stable and that's usually updated a few days after a Podman release.

For example Podman v5.2.2 has been released on the 2024-08-21 but has been included in Fedora 40 stable one week after that, and the updated WSL disk image has been released on the 2024-08-27.

Always publish current and old version of the disk on GitHub

Podman v5.y.z downloads v5.y of the WSL OS image from the latest release on this GitHub repository. For example Podman v5.1.2 downloads the file 5.1-rootfs-amd64.tar.zst (or the arm64 equivalent) from the latest release.

That means that every GitHub release needs to include WSL disk images for old and new versions of Podman 5.

When a new version of Podman is released

After a new version of Podman has been released (i.e. when the fedora package has been updated), the OCI artifact tags should be updated using development Podman version:

-    IMAGE_TAG_LATEST: "5.3"
-    IMAGE_TAG_NEXT: "5.4"
+    IMAGE_TAG_LATEST: "5.4"
+    IMAGE_TAG_NEXT: "5.5"