osbuild / osbuild-composer

An HTTP service for building bootable OS images.
https://www.osbuild.org
Apache License 2.0
155 stars 106 forks source link

osbuild-upload-aws: ability to handle ec2 `.xz` images #2226

Open gicmo opened 2 years ago

gicmo commented 2 years ago

The artefacts that we brew via the koji API are compressed, a la rhel-ec2-8.5-1014.x86_64.raw.xz. Ensure that osbuild-upload-aws can handle such artefacts so that we can use it on images produced in brew.

thozza commented 2 years ago

Just for the sake of archeology, these artefacts are compressed mainly to save disk space in Brew. EXD uses pub tool, which extracts the image before uploading.

In the past, I was playing with the idea, that one could request any image to be compressed or not on the output. E.g. in the compose request, we could pass a flag to compress the image, which would result in addition of the appropriate pipeline to compress the image. This turned out to be pretty complicated approach and I gave up on it.