Commit Graph

6491 Commits

Author SHA1 Message Date
openshift-merge-bot[bot] a2108716b5
Merge pull request #6272 from containers/renovate/github.com-docker-docker-28.x
fix(deps): update module github.com/docker/docker to v28.3.2+incompatible
2025-07-10 17:38:18 +00:00
renovate[bot] d9443fe42f
fix(deps): update module golang.org/x/term to v0.33.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-10 16:53:00 +00:00
openshift-merge-bot[bot] cc938ce53f
Merge pull request #6273 from containers/renovate/golang.org-x-sync-0.x
fix(deps): update module golang.org/x/sync to v0.16.0
2025-07-10 16:11:04 +00:00
renovate[bot] d6e5cbaf74
fix(deps): update module golang.org/x/sync to v0.16.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-10 02:45:42 +00:00
renovate[bot] c694e3c7a2
fix(deps): update module github.com/docker/docker to v28.3.2+incompatible
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-09 23:15:31 +00:00
Joshua Arrevillaga eea4838d88 ADD/COPY --link support added
What type of PR is this?
/kind feature

What this PR does / why we need it:
It implements --link for COPY and ADD instructions and enables the creation of
cachable layers that can be reused independently across builds.

Follows buildkit `--link` specifications

How to verify it
bats tests/bud.bats

Which issue(s) this PR fixes:
Fixes #4325

Does this PR introduce a user-facing change?
Yes, gives extra functionality to Containerfiles

Signed-off-by: Joshua Arrevillaga <2004jarrevillaga@gmail.com>
2025-07-09 17:14:28 -04:00
openshift-merge-bot[bot] 1b5cdd50fa
Merge pull request #6259 from containers/renovate/github.com-docker-docker-28.x
fix(deps): update module github.com/docker/docker to v28.3.1+incompatible
2025-07-09 18:43:29 +00:00
openshift-merge-bot[bot] d23f64120a
Merge pull request #6264 from flouthoc/passwd-test
buildah: move `passwd` command to tests
2025-07-09 17:51:38 +00:00
Lokesh Mandvekar 063ee76258
RPM/TMT: account for passwd binary moving to tests
Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
Co-authored-by: flouthoc <flouthoc.git@gmail.com>
Signed-off-by: flouthoc <flouthoc.git@gmail.com>
2025-07-09 06:31:09 -07:00
flouthoc af210ea877
buildah: move passwd command to tests
https://github.com/containers/buildah/issues/6182

Signed-off-by: flouthoc <flouthoc.git@gmail.com>
2025-07-09 06:31:04 -07:00
openshift-merge-bot[bot] f67acf9a69
Merge pull request #6267 from rahilarious/main
Remove BUILDTAG btrfs_noversion as no longer effective
2025-07-09 09:21:08 +00:00
openshift-merge-bot[bot] 68c0bbacdf
Merge pull request #6271 from nalind/cgroups
Update "bud with --cpu-shares" test, and rename it
2025-07-09 04:42:40 +00:00
openshift-merge-bot[bot] 1b4cb34e0f
Merge pull request #6256 from containers/renovate/github.com-moby-buildkit-0.x
fix(deps): update module github.com/moby/buildkit to v0.23.2
2025-07-08 23:24:28 +00:00
Nalin Dahyabhai 16c0bdad5f Update "bud with --cpu-shares" test, and rename it
Update "the bud with --cpu-shares" test to expect the a cgroupsv2 value
computed using either the older formula or the newer one introduced in
github.com/opencontainers/cgroups v0.0.3, and give it a unique name so
that it can be selected more easily with bats's "--filter" flag.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2025-07-08 16:38:40 -04:00
openshift-merge-bot[bot] 564f525213
Merge pull request #6255 from containers/renovate/github.com-containers-luksy-digest
fix(deps): update github.com/containers/luksy digest to bc60f96
2025-07-08 18:06:09 +00:00
Rahil Bhimjiani 7a482acebc
Remove BUILDTAG btrfs_noversion as no longer effective
https://github.com/containers/storage/pull/2308

Signed-off-by: Rahil Bhimjiani <me@rahil.rocks>
2025-07-07 19:30:09 +05:30
renovate[bot] c0fdc9a056
fix(deps): update module github.com/docker/docker to v28.3.1+incompatible
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-03 02:37:47 +00:00
renovate[bot] 513775f3f3
fix(deps): update module github.com/moby/buildkit to v0.23.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-01 20:44:06 +00:00
renovate[bot] 34488b5497
fix(deps): update github.com/containers/luksy digest to bc60f96
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-01 05:10:26 +00:00
openshift-merge-bot[bot] 5408a8b3e9
Merge pull request #6251 from Luap99/vendor
/ call_cron_failures (push) Has been cancelled Details
vendor: update c/{common,image,storage} to main
2025-06-30 16:57:15 +00:00
Patrick Stoeckle 9f809a88ff
chore(typos): fix typos
Signed-off-by: Patrick Stoeckle <patrick.stoeckle@siemens.com>
2025-06-30 15:45:47 +02:00
Paul Holzinger d95b2dad17
vendor: update c/{common,image,storage} to main
Pull in the rekor removal from c/image which reduces the dependencies.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-06-30 13:40:22 +02:00
openshift-merge-bot[bot] 4ceee32d77
Merge pull request #6250 from containers/renovate/go-github.com-go-viper-mapstructure-v2-vulnerability
chore(deps): update module github.com/go-viper/mapstructure/v2 to v2.3.0 [security]
2025-06-27 21:36:35 +00:00
renovate[bot] b47791a931
chore(deps): update module github.com/go-viper/mapstructure/v2 to v2.3.0 [security]
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-27 17:10:01 +00:00
openshift-merge-bot[bot] 7a243f955e
Merge pull request #6249 from containers/renovate/go.etcd.io-bbolt-1.x
fix(deps): update module go.etcd.io/bbolt to v1.4.2
2025-06-27 17:08:38 +00:00
renovate[bot] 46e8141739
fix(deps): update module go.etcd.io/bbolt to v1.4.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-27 15:27:30 +00:00
openshift-merge-bot[bot] f28c074787
Merge pull request #6247 from nalind/source-date-epoch-build-arg
Accept SOURCE_DATE_EPOCH as a build-arg
2025-06-26 19:30:16 +00:00
openshift-merge-bot[bot] e6d26dd363
Merge pull request #6248 from actionmancan/update-neil-smith-github-username
Update Neil Smith's GitHub username in MAINTAINERS.md
2025-06-26 18:18:34 +00:00
G A Neil Smith f172a9d1de Update Neil Smith's GitHub username in MAINTAINERS.md
- Changed GitHub username from 'Neil-Smith' to 'actionmancan'
- Fixed GitHub URL from https://github.com/Neil-Smith to https://github.com/actionmancan
- Corrected column alignment by removing extra spaces
- Maintains Neil Smith's role as Community Manager

Does this PR introduce a user-facing change?

```release-note
None
```

Signed-off-by: G A Neil Smith <nesmith@redhat.com>
2025-06-26 13:14:41 -04:00
openshift-merge-bot[bot] 9f6205610c
Merge pull request #6242 from nalind/common-formats
Use containers/common's formats package instead of our own
2025-06-25 19:53:42 +00:00
openshift-merge-bot[bot] f828ea2f75
Merge pull request #6243 from cevich/add_release_test
Add conditional release-checking system test
2025-06-25 19:26:02 +00:00
Nalin Dahyabhai 149bf968f5 Accept SOURCE_DATE_EPOCH as a build-arg
When SOURCE_DATE_EPOCH is passed in as a build-arg, treat it as we would
if it was passed in via the environment or its own CLI flag.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2025-06-25 15:19:32 -04:00
openshift-merge-bot[bot] b9c485c123
Merge pull request #6239 from nalind/oci-created-annotation
build, commit: set the OCI ...created annotation on OCI images
2025-06-25 19:17:49 +00:00
openshift-merge-bot[bot] 06abe5fc77
Merge pull request #6244 from containers/renovate/github.com-docker-docker-28.x
fix(deps): update module github.com/docker/docker to v28.3.0+incompatible
2025-06-25 14:18:35 +00:00
renovate[bot] 5bb8d5ed43
fix(deps): update module github.com/docker/docker to v28.3.0+incompatible
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-25 02:29:26 +00:00
Chris Evich 0832c3e081
Add conditional release-checking system test
Unfortunately on a number of occasions, Buildah has been released
officially with a `-dev` suffix in the version number.  Assist in
catching this mistake at release time by the addition of a simple
conditional test.  Note that it must be positively enabled by a
magic env. var. before executing the system tests.

Also (thanks to @lsm5) update the TMT test to trigger the new
condition for future Fedora releases.

Signed-off-by: Chris Evich <cevich@redhat.com>
2025-06-24 10:57:46 -04:00
Nalin Dahyabhai 52bbc61e1f info,inspect: use the "formats" package to get some builtins
Use the "formats" package to format `info` and `inspect` output, so that
template users will be able to use whatever functions are provided with
`images` and `containers` output, including "json", "lower", and "upper".

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2025-06-23 16:17:04 -04:00
Nalin Dahyabhai 7944b4b2b0 Use containers/common's formats package instead of our own
Use the containers/common "formats" package, which started off as a copy
of our own and is still mostly the same, instead of our own.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2025-06-23 15:53:55 -04:00
Nalin Dahyabhai 5968d82047 build, commit: set the OCI ...created annotation on OCI images
When building or committing an image in OCI format, default to setting
the org.opencontainers.image.created annotation to the value used in the
image's config blob for the image's creation date. The behavior can be
controlled using the new --created-annotation flag.

Add --annotation and --unsetannotation flags to `buildah commit` which
mimic the same flags for `buildah build`.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2025-06-23 15:05:02 -04:00
openshift-merge-bot[bot] e6375b3c28
Merge pull request #6236 from nalind/omit-layer-history-entry
Add CommitOptions.OmitLayerHistoryEntry, for skipping the new bits
2025-06-22 16:16:08 +00:00
openshift-merge-bot[bot] 9bfdf2a0b5
Merge pull request #6233 from nalind/mount-targets
run,commit: clean up parents of mount targets, too
2025-06-22 16:13:24 +00:00
Nalin Dahyabhai df36bb835a commit: exclude parents of mount targets, too
When RUN requires us to create the target for a mountpoint, make note of
it and any parent directories that needed to be created, and filter them
out when generating a layer diff or --output data.

The exceptions will be directories that the conformance tests confirm
that BuildKit also leaves behind, though for compatibility with the
classic builder, we have to make that conditional.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2025-06-20 11:19:27 -04:00
Nalin Dahyabhai a3bea818b8 run: clean up parents of mount targets, too
When RUN requires us to create the target for a mountpoint, make note of
it and any parent directories that needed to be created, and clear them
all out if they look basically the same after the command finishes.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2025-06-20 11:19:27 -04:00
Nalin Dahyabhai 7d5f1e1ca9 tarFilterer: always flush after writing
Always call the nested TarWriter's Flush() method after writing file
contents.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2025-06-20 11:19:27 -04:00
Nalin Dahyabhai fce45b77d0 Builder: drop the TempVolumes field
The TempVolumes field is used to track data that's specific to a Run()
call, and there can be more than one of those going at a time.  Merge
its data into the runMountArtifacts struct, which already keeps a list
of locations that we have to clean up in exactly the same way.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2025-06-20 11:19:27 -04:00
openshift-merge-bot[bot] dc1a1f5b3b
Merge pull request #6238 from containers/renovate/github.com-moby-buildkit-0.x
Update module github.com/moby/buildkit to v0.23.1
2025-06-20 15:18:37 +00:00
openshift-merge-bot[bot] c2a39c2cfa
Merge pull request #6237 from containers/renovate/github.com-opencontainers-cgroups-0.x
Update module github.com/opencontainers/cgroups to v0.0.3
2025-06-20 15:15:51 +00:00
renovate[bot] fe4c1b7342
Update module github.com/moby/buildkit to v0.23.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-20 11:58:54 +00:00
renovate[bot] 128153867b
Update module github.com/opencontainers/cgroups to v0.0.3
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-19 03:32:15 +00:00
Nalin Dahyabhai 5b1d3e666f Add CommitOptions.OmitLayerHistoryEntry, for skipping the new bits
Add an OmitLayerHistoryEntry field to CommitOptions, which more or less
causes us to reproduce our base image, except with PrependedEmptyLayers,
AppendedEmptyLayers, PrependedLinkedLayers, AppendedLinkedLayers, and
config changes still added in.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2025-06-18 10:48:54 -04:00