We’re pleased to announce the release of Buildahversion 1.40.0, which is now available from GitHub for any Linux distro. We are shipping this release on Fedora 41 and Fedora 42. Buildah will also be shipped on CentOS, OpenSUSE, and Ubuntu soon. In addition, container images will be available at https://quay.io/repository/buildah/stable and https://quay.io/repository/containers/buildah.
The Buildah project has continued to grow over the past several weeks, welcoming several new contributors to the mix. This release features notable changes:
The --inherit-labels option has been added to inherit labels from the base image, or not.
Add a --parents option for the COPY command to preserve leading directories in the paths of items being copied, relative to either the top of the build context, or to the “pivot point”.
The --timestamp option, if set, is now passed through to a destination of --tag=oci-archive and is applied to the timestamp of entries in the tar archive
This release comprises changes made for v1.40.0 and will be included in Podman v5.5.
Release Changes
Changes for v1.40.0
Bump Buildah to v1.39.0, c/storage v1.57.1, c/image v5.34.0, c/common v0.62.0 by @TomSweeneyRedHat in #5962
*The host directory used when a buildah build RUN instruction or buildah run uses the --mount=type=cache option is now chosen based not only on its “target” or “id” value, but also on the combination of “uid” and “gid” flag values specified, by @nalind in #5978
Better support for the containers.conf container_name_as_hostname option by @nalind in #5943
Better validation of manifest and expected digests by @mtrmac in #6014
stage_executor: history now correctly includes the heredoc summary by @flouthoc in #6041
Add --parents option for the COPY command to preserve leading directories in the paths of items being copied, relative to either the top of the build context, or to the “pivot point” by @Honny1 in #6008
The /proc/interrupts and /sys/devices/system/cpu/*/thermal_throttle are thermal paths are masked by default by @giuseppe in #6074
The –timestamp option, if set, is now passed through to a destination of –tag=oci-archive: and is applied to the timestamp of entries in the tar archive by @aeijdenberg in #6023
“chroot” isolation should no longer require the “–no-pivot” flag be specified in order to function on “image mode” systems. by @nalind in #6088
Fixed a bug to add: correctly resolve git tags and branches and report errors if no reference is found by @flouthoc in #6087
Fixed a bug in processing Windows style paths by @danegsta in #6083
Return status 125 when a git operation fails instead of relaying the error code directly from git by @flouthoc in #6092
The build process now resets the platform in systemcontext for every stage by @flouthoc in #5971
Allow users to choose if they want to inherit labels from the base image by using –inherit-labels option by @flouthoc in #6103
Certain errors encountered when calling mount() while using “chroot” isolation will now use mount flag names in error diagnostic messages by @nalind in #6129
A bug was fixed to close files after a build properly by @aeijdenberg in #6047
Overall Miscellaneous Changes
Documentation:
Switch to the CNCF Code of Conduct by @mheon in #5982
github: remove cirrus rerun action by @Luap99 in #6063
github: check_cirrus_cron work around github bug by @Luap99 in #6120
github: disable cron rerun action by @Luap99 in #6036
cirrus: make Total Success wait for rootless integration by @Luap99 in #6130
Plus a few minor fixes.
Try it Out.
If you haven’t yet, install Buildah from one of the Linux repos or GitHub and give it a spin. We’re betting you’ll find it’s an easy and quick way to build containers in your environment without a daemon being involved!
For those of you who contributed to this release, thank you very much for your contributions! If you haven’t joined our community yet, don’t wait any longer! Come join us on GitHub, where Open Source communities live.