From Fedora Project Wiki
(Created page with "{{QA/Test_Case |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. Configure `zstd:chunked` as the default format in `containers.conf`. |actions= # Configure `zstd:chunked` as the default format in `containers.conf`. # Build a container image using the `podman build` command. # Push the built image to a r...") |
No edit summary |
||
Line 1: | Line 1: | ||
{{QA/Test_Case | {{QA/Test_Case | ||
|description=This test case ensures that the zstd:chunked compression is properly configured and functions correctly in Podman 5.1. | |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. | |setup= | ||
# Install the pre-release version of Fedora with Podman 5.1 on a bare metal system. | |||
# Dockerhub account | |||
|actions= | |actions= | ||
# Configure `zstd:chunked` as the default format in `containers.conf`. | # Configure `zstd:chunked` as the default format in `containers.conf`, edit <code>compression_format = "zstd:chunked"</code> and uncomment the line. | ||
# Build a container image using the `podman build` command. | # Write your own containerfile or use this[https://gist.github.com/sumantro93/c2bdeea4847c1e3a9a0057faa4384684] | ||
# Push the built image to a registry. | # Write an HTML file if you are using the above gist[https://gist.github.com/sumantro93/4a2f5d1d2c7fe428ecc3af99b0dc5750] | ||
# Build a container image using the `podman build -t my-fedora-container .` command. | |||
# Run `podman run -p 8080:80 my-fedora-container` | |||
# 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. | # Run the image with an older version of Podman or Docker to verify compatibility. | ||
# Update the container image with an additional package. | # Update the container image with an additional package. | ||
# Squash the image using `podman build --squash-all` | # Squash the image using `podman build --squash-all .` | ||
# Push the updated image to the registry. | # Push the updated image to the registry. | ||
# Remove the image from local storage | # Remove the image from local storage `podman rmi -a` | ||
# Pull the image from the registry. | # Pull the image from the registry. | ||
|results= | |results= |
Revision as of 04:42, 19 May 2024
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
- 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.