From Fedora Project Wiki
Description
This test case ensures that the zstd:chunked compression is properly configured and functions correctly in Podman 5.1.
Setup
- Install the pre-release version of Fedora with Podman 5.1 on a bare metal system.
- Dockerhub account
How to test
- Configure
zstd:chunked
as the default format incontainers.conf
, editcompression_format = "zstd:chunked"
and uncomment the line. - Write your own containerfile or use this[1]
- Write an HTML file if you are using the above gist[2]
- Build a container image using the
podman build -t my-fedora-container .
command. - Run
podman run -p 8080:80 my-fedora-container
and check localhost:8080 - Tag the image
podman tag my-fedora-container docker.io/<YOUR_USERNAME>/my-fedora-container:latest
- Login from CLI
podman login docker.io
- Push the built image to a registry
podman push docker.io/<YOUR_USERNAME>/my-fedora-container:latest
- Run the image with an older version of Podman or Docker to verify compatibility.
- Update the container image with an additional package.
- Squash the image using
podman build --squash-all .
- Push the updated image to the registry.
- Remove the image from local storage
podman rmi -a
- Pull the image from the registry.
Expected Results
The following must be true to consider this a successful test run:
zstd:chunked
is correctly configured incontainers.conf
.- Container image builds successfully and is pushed to the registry without errors.
- The image runs correctly with an older version of Podman or Docker.
- The container image is updated and squashed without errors.
- The squashed image is pushed to the registry successfully.
- The image is removed from local storage and re-pulled from the registry.
- Significant savings on pull size are observed due to zstd:chunked compression.
Optional
Optionally, test the performance impact of zstd:chunked
compression during various stages (build, push, pull) and compare it to other compression formats.