Commit Graph

6491 Commits

Author SHA1 Message Date
Aaron Lehmann cf4635e86b
Refactor NewImageSource to add a manifest type abstraction (#5743)
* Refactor NewImageSource to add a manifest type abstraction

Currently, NewImageSource creates a Docker schema2 manifest and an OCI
manifest at the same time. This precludes functionality that isn't
supported by both manifest types, for example zstd compression.
Refactoring this to create only the desired manifest type solves this
and also cleans up the code by separating manifest-type-specific code
into distinct implementations of a "manifest builder".

See discussion in https://github.com/containers/buildah/pull/5452.

Signed-off-by: Aaron Lehmann <alehmann@netflix.com>

* Review feedback

Signed-off-by: Aaron Lehmann <alehmann@netflix.com>

* Review feedback, round 2

Signed-off-by: Aaron Lehmann <alehmann@netflix.com>

---------

Signed-off-by: Aaron Lehmann <alehmann@netflix.com>
Co-authored-by: flouthoc <flouthoc@users.noreply.github.com>
2025-05-20 13:08:17 -07:00
Lokesh Mandvekar 964ec24c13
[skip-ci] Packit: Ignore ELN and CentOS Stream jobs
Ignore these jobs until go 1.23.3+ is available in their buildroots

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2025-05-20 15:48:28 -04:00
flouthoc 8f885843db
imagebuildah: select most recent layer for cache
If multiple layers are found as cache candidates then select the layer
which was created recently.

Closes: https://github.com/containers/buildah/issues/6152

Signed-off-by: flouthoc <flouthoc.git@gmail.com>
2025-05-20 10:34:21 -07:00
tomsweeneyredhat 7fbca08c02 [CI:DOCS] Add CNCF roadmap, touchup other CNCF files
Added a ROADMAP.md file per CNCF requirements.

Updated the GOVERNANCE.md file to point to and use the local
MAINTAINERS.md file instead of the one in Podman.  Also added
links to the OWNERS file.

Updated the MAINTAINERS.md file to bump Aditya Rajan to a
Maintainer from a reviewer. Having him as a reviewer was
a cut/paste error that was not caught when the file was
first generated from the Podman file.

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2025-05-20 13:21:45 -04:00
openshift-merge-bot[bot] a1dad28e32
Merge pull request #6156 from containers/renovate/golang.org-x-crypto-0.x
/ call_cron_failures (push) Has been cancelled Details
Mark stale issues and pull requests / stale (push) Has been cancelled Details
/ closed_issue_discussion_lock (push) Has been cancelled Details
fix(deps): update module golang.org/x/crypto to v0.38.0
2025-05-14 14:53:50 +00:00
renovate[bot] 168eef4734
fix(deps): update module golang.org/x/crypto to v0.38.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-14 13:33:24 +00:00
Sascha Brawer ada0ac0b89
Fix typo in comment (#6167)
Signed-off-by: Sascha Brawer <sascha@brawer.ch>
2025-05-13 19:04:04 -07:00
openshift-merge-bot[bot] cd2bb6169f
Merge pull request #6161 from rhatdan/security
/ call_cron_failures (push) Has been cancelled Details
Support label_users in buildah
2025-05-06 14:20:15 +00:00
Daniel J Walsh 081e9b308d
Support label_users in buildah
Fixes: https://github.com/containers/buildah/issues/6160

label_users tells buildah and podman to maintain the user and role
from the SELinux label, the default is to change the user and role to
system_u:system_r.

With this change we end up with an unconfined_u user running the
container as unconfined_u:unconfined_r.

I don't believe our CI/CD system can test this, because it runs with
system_u:system_r by default.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2025-05-06 07:13:27 -04:00
openshift-merge-bot[bot] 646fb21ef2
Merge pull request #6154 from containers/renovate/golang.org-x-sync-0.x
fix(deps): update module golang.org/x/sync to v0.14.0
2025-05-05 15:41:52 +00:00
renovate[bot] 27c2c3e4ba
fix(deps): update module golang.org/x/sync to v0.14.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-05 14:48:34 +00:00
openshift-merge-bot[bot] 7ba98de415
Merge pull request #6151 from containers/renovate/github.com-containers-luksy-digest
fix(deps): update github.com/containers/luksy digest to 4bb4c3f
2025-05-02 13:44:03 +00:00
openshift-merge-bot[bot] a79f540723
Merge pull request #6146 from nalind/serve-leak
test/serve: fix a descriptor leak, add preliminary directory support
2025-05-02 09:38:09 +00:00
renovate[bot] ffcbec7f79
fix(deps): update github.com/containers/luksy digest to 4bb4c3f
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-01 03:02:39 +00:00
Nalin Dahyabhai cbe5823958 test/serve: fix a descriptor leak, add preliminary directory support
Fix a descriptor leak in the helper, and add some minimal support for
clients that might want to scrape HTML of a directory to walk the
filesystem.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2025-04-30 11:50:42 -04:00
openshift-merge-bot[bot] 36c3f13d85
Merge pull request #6150 from containers/renovate/github.com-opencontainers-cgroups-0.x
fix(deps): update module github.com/opencontainers/cgroups to v0.0.2
2025-04-30 15:47:51 +00:00
renovate[bot] f97596adf3
fix(deps): update module github.com/opencontainers/cgroups to v0.0.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-30 14:45:32 +00:00
openshift-merge-bot[bot] 8e43db65ca
Merge pull request #6147 from containers/renovate/github.com-opencontainers-runc-1.x
fix(deps): update module github.com/opencontainers/runc to v1.3.0
2025-04-30 14:44:23 +00:00
openshift-merge-bot[bot] f91b3f70fe
Merge pull request #6149 from containers/renovate/github.com-moby-buildkit-0.x
fix(deps): update module github.com/moby/buildkit to v0.21.1
2025-04-30 14:41:37 +00:00
openshift-merge-bot[bot] 5731583e94
Merge pull request #6141 from hanwen-flow/image-fixes
Filter image only when necessary
2025-04-30 13:02:18 +00:00
renovate[bot] fd8e85e833
fix(deps): update module github.com/moby/buildkit to v0.21.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-29 23:28:31 +00:00
Nalin Dahyabhai 9ac03e6bf9 Update to avoid deprecated types
Replace our use of the
github.com/opencontainers/runc/libcontainer/devices.Permissions type
with the github.com/opencontainers/cgroups/devices/config.Permissions
type, which the former is now an alias for.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2025-04-29 14:17:29 -04:00
renovate[bot] 7ce7072f25
fix(deps): update module github.com/opencontainers/runc to v1.3.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-29 17:49:49 +00:00
Han-Wen Nienhuys a59af89cd8 Only filter if containerImageRef.created != nil
This option is set from CommitOptions.HistoryTimestamp, which
corresponds to the buildah option '--timestamp', and therefore is off
by default.

If this option is not given, we can save ourselves one layer of
copying (tar filtering is a tar.Reader/tar.Writer connnected with io.Pipe())

Signed-off-by: Han-Wen Nienhuys <hanwen@engflow.com>
2025-04-29 08:21:28 +02:00
Han-Wen Nienhuys 2dae3b4656 Drop superfluous cast
Signed-off-by: Han-Wen Nienhuys <hanwen@engflow.com>
2025-04-29 08:21:28 +02:00
Han-Wen Nienhuys 15278aa27d Remove UID/GID scrubbing.
As of
e024854ba3,
Uname/Gname fields are not populated on Unix. On Windows, the golang
tar package leaves the Uname/Gname fields empty.

Signed-off-by: Han-Wen Nienhuys <hanwen@engflow.com>
2025-04-29 08:21:28 +02:00
openshift-merge-bot[bot] e886f271ee
Merge pull request #6144 from containers/renovate/github.com-seccomp-libseccomp-golang-0.x
fix(deps): update module github.com/seccomp/libseccomp-golang to v0.11.0
2025-04-24 20:06:56 +00:00
renovate[bot] ef7ad851a6
fix(deps): update module github.com/seccomp/libseccomp-golang to v0.11.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-23 22:55:14 +00:00
openshift-merge-bot[bot] 420e4bfd0a
Merge pull request #6142 from containers/renovate/major-ci-vm-image
chore(deps): update dependency containers/automation_images to v20250422
2025-04-23 15:48:04 +00:00
Paul Holzinger e4cf6cbb90
cirrus: turn prior fedora testing back on
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-04-23 16:07:43 +02:00
renovate[bot] 5de286ca8e
chore(deps): update dependency containers/automation_images to v20250422
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-04-23 16:05:19 +02:00
openshift-merge-bot[bot] d6370d08de
Merge pull request #6138 from containers/renovate/github.com-docker-docker-28.x
fix(deps): update module github.com/docker/docker to v28.1.1+incompatible
2025-04-21 19:40:56 +00:00
renovate[bot] 97cf88f504
fix(deps): update module github.com/docker/docker to v28.1.1+incompatible
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-21 19:03:21 +00:00
openshift-merge-bot[bot] 614e42b808
Merge pull request #6136 from TomSweeneyRedHat/dev/tsweeney/v1.40.0
Bump c/storage v1.58.0, c/image v5.35.0, c/common v0.63.0, Buildah v1.40.0, then to dev
2025-04-21 15:10:17 +00:00
Tom Sweeney 58b1f29836
Merge branch 'main' into dev/tsweeney/v1.40.0 2025-04-17 16:59:01 -04:00
tomsweeneyredhat 36adabb2d6 Bump to Buildah v1.41.0-dev
Bump the main Buildah branch to the next dev version,
Buildah v1.41.0-dev

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2025-04-17 15:21:28 -04:00
tomsweeneyredhat ff62e3e8a5 Bump Buildah to v1.40.0
Bump Buildah to v1.40.0 in preparation
for Podman v5.5.0

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2025-04-17 15:21:28 -04:00
tomsweeneyredhat d8495826cc Bump c/storage to v1.58.0, c/image v5.35.0, c/common v0.63.0
Bumps:
c/storage to v1.58.0
c/image to v5.35.0
c/common to v0.63.0

In preparation for Buildah 1.40.0 and Podman v5.5.0

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2025-04-17 15:21:20 -04:00
openshift-merge-bot[bot] 1db3b5465b
Merge pull request #6135 from containers/renovate/github.com-containers-common-0.x
fix(deps): update module github.com/containers/common to v0.63.0
2025-04-17 17:37:55 +00:00
Nalin Dahyabhai 365ad53dfc CI vendor_task: pin to go 1.23.3 for now
Pin to 1.23.3 specifically instead of 1.23, for now.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2025-04-17 12:41:11 -04:00
renovate[bot] 522bc8ba58
fix(deps): update module github.com/containers/common to v0.63.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-17 15:36:04 +00:00
openshift-merge-bot[bot] a0945beb1e
Merge pull request #6134 from containers/renovate/github.com-docker-docker-28.x
fix(deps): update module github.com/docker/docker to v28.1.0+incompatible
2025-04-17 15:29:22 +00:00
renovate[bot] a1df886a81
fix(deps): update module github.com/docker/docker to v28.1.0+incompatible
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-17 14:26:17 +00:00
openshift-merge-bot[bot] 01d92cd614
Merge pull request #6129 from nalind/chroot-troubleshoot
chroot: use symbolic names when complaining about mount() errors
2025-04-17 13:51:54 +00:00
openshift-merge-bot[bot] 3a4249802e
Merge pull request #6099 from ninja-quokka/update_issue_template
Update Buildah issue template to new version and support podman build
2025-04-17 13:49:12 +00:00
openshift-merge-bot[bot] 01b8522d7a
Merge pull request #6127 from nalind/doc-src
[CI:DOCS] Document rw/src for --mount in buildah-run(1)
2025-04-17 13:45:52 +00:00
openshift-merge-bot[bot] a9d6f2d7f8
Merge pull request #6131 from containers/renovate/github.com-containers-storage-1.x
fix(deps): update module github.com/containers/storage to v1.58.0
2025-04-16 17:57:35 +00:00
openshift-merge-bot[bot] 018e1915d2
Merge pull request #6130 from Luap99/cirrus-rootless
cirrus: make Total Success wait for rootless integration
2025-04-16 17:54:53 +00:00
renovate[bot] aedcd3d19e
fix(deps): update module github.com/containers/storage to v1.58.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-16 16:19:48 +00:00
openshift-merge-bot[bot] 352eda35bc
Merge pull request #6128 from nalind/completion
cli: hide the `completion` command instead of disabling it outright
2025-04-16 16:18:31 +00:00