Commit Graph

6583 Commits

Author SHA1 Message Date
renovate[bot] 11e32da8db
fix(deps): update module github.com/containers/common to v0.64.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-05 15:20:19 +00:00
openshift-merge-bot[bot] 4ac30b33ed
Merge pull request #6316 from containers/renovate/github.com-containers-image-v5-5.x
fix(deps): update module github.com/containers/image/v5 to v5.36.1
2025-08-05 14:54:29 +00:00
Nalin Dahyabhai 70d0451b86 History should note unset-label, timestamp, and rewrite-timestamp
Make the history created-by field note when a label was unset, or if the
one of the CLI flags that modifies the timestamps in the layer were
used, so that the cache evaluation logic can factor that into account.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2025-08-04 18:49:45 -04:00
Nalin Dahyabhai 7cecaa79ea pkg/cli.GenBuildOptions(): don't hardwire optional bools
Treat the five optional bool flags as optional bool values, allowing for
them to not be set if they weren't explicitly given on the command line.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2025-08-04 18:41:00 -04:00
renovate[bot] 7cf2b7fb76
fix(deps): update module github.com/containers/image/v5 to v5.36.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-04 20:54:56 +00:00
openshift-merge-bot[bot] 3c273fc617
Merge pull request #6312 from containers/renovate/github.com-containers-storage-1.x
fix(deps): update module github.com/containers/storage to v1.59.1
2025-08-04 19:23:39 +00:00
Nalin Dahyabhai fb6ce9d07b imagebuildah.StageExecutor.Execute: commit more "no instructions" cases
When there are no instructions to process, we try to reuse the base
image.  When we've been told, out of band, to remove labels or
environment variables, or affect annotations, we still need to, though,
so check for values of more of those flags.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2025-08-04 14:30:25 -04:00
renovate[bot] 0d1d1a4df8
fix(deps): update module github.com/containers/storage to v1.59.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-04 14:49:23 +00:00
Nalin Dahyabhai 87f60f60c6 Only suppress "noted" items when not squashing
When suppressing what we think are pulled-up directories at commit-time,
only do that when we're _not_ squashing the image, in which case we
really do need to output it into the one layer that our output image
will have.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2025-08-01 16:55:16 -04:00
Nalin Dahyabhai 27c40b3dbe Reap stray processes
run: after we've picked up the exit status of the "main" process that
we're running, reap anything that was reparented to us before returning.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2025-08-01 13:30:47 -04:00
openshift-merge-bot[bot] 14e66c073b
Merge pull request #6309 from containers/renovate/github.com-containers-luksy-digest
Mark stale issues and pull requests / stale (push) Has been cancelled Details
/ closed_issue_discussion_lock (push) Has been cancelled Details
/ call_cron_failures (push) Has been cancelled Details
fix(deps): update github.com/containers/luksy digest to 8fccf78
2025-08-01 16:12:01 +00:00
renovate[bot] b271aecf41
fix(deps): update github.com/containers/luksy digest to 8fccf78
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-01 02:39:48 +00:00
openshift-merge-bot[bot] daf7143b89
Merge pull request #6303 from containers/renovate/github.com-docker-docker-28.x
fix(deps): update module github.com/docker/docker to v28.3.3+incompatible
2025-07-29 20:31:54 +00:00
renovate[bot] 06207266f7
fix(deps): update module github.com/docker/docker to v28.3.3+incompatible
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-29 17:38:53 +00:00
openshift-merge-bot[bot] 3b37ca6ad5
Merge pull request #6296 from nalind/pulled-up-directories
Exclude pulled up parent directories at commit-time
2025-07-28 21:14:39 +00:00
openshift-merge-bot[bot] 88e7e23fa1
Merge pull request #6300 from Romain-Geissler-1A/restore-pull-default-meaning
Restore the default meaning of `--pull` (should be `always`).
2025-07-28 19:10:56 +00:00
Romain Geissler f949a49ab0
Restore the default meaning of `--pull` (should be `always`).
Now the bud --help output correctly reads that the default behavior when
--pull is not provided at all is "missing", and that the default value
for --pull if explicitly provided but without value is "always".

Fixes #6266.

Signed-off-by: Romain Geissler <romain.geissler@amadeus.com>
2025-07-28 16:21:31 +00:00
Nalin Dahyabhai ff07ebc3ec Test that pulled up parent directories are excluded at commit
Add a test that causes parent directories of mount targets to be "pulled
up" if we're running on top of overlay in a situation where its native
diff method is available, and ensure that we can still avoid adding
those directories to the committed layer when we're the only reason they
were pulled up.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2025-07-24 13:13:53 -04:00
Nalin Dahyabhai 7d302c38d1 Exclude pulled up parent directories at commit-time
When Ensure() tells us about the parent directories of a mountpoint
target that it created for us, add them to the list of items that we'll
exclude from the commit unless something else causes them to be
modified.

The "native" overlay diff method just walks the diff directory, so we
can get directories in the committed layer that look exactly like the
ones in the previous layer, depending on the storage driver.  And while
it's barely noticeable, we can still control for it.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2025-07-24 13:13:53 -04:00
Nalin Dahyabhai 95013b363f copier.Ensure(): also return parent directories
Have Ensure() also return the parent directories of items that it
created, along with information about them that can be used to filter
them out of the layer at commit-time.

This modifies the signature of Ensure(), but it was added in 1.41.0, and
shouldn't (yet) have any external users.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2025-07-24 13:13:53 -04:00
Nalin Dahyabhai 8807a00976 copier.MkdirOptions: add ModTimeNew
Add an optional ModTimeNew field to MkdirOptions, for setting the
timestamp on newly-created directories.  Note that the timestamps on
parent directories of the topmost newly-created directories are not
something we affect, so they'll be updated as usual.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2025-07-24 13:13:53 -04:00
openshift-merge-bot[bot] ca5ed2afdc
Merge pull request #6286 from nalind/runc-non-blocking
CI: make runc tests non-blocking
2025-07-24 17:02:46 +00:00
openshift-merge-bot[bot] f79243aa2c
Merge pull request #6293 from TomSweeneyRedHat/dev/tsweeney/v1.41.0-pt2
Bump c/storage to v1.59.0, c/image v5.36.0, c/common v0.64.0, Buildah to v1.41.0, then v1.42.0-dev
2025-07-21 10:46:30 +00:00
openshift-merge-bot[bot] b03bc242a7
Merge pull request #6294 from containers/renovate/github.com-containers-common-0.x
/ call_cron_failures (push) Has been cancelled Details
fix(deps): update module github.com/containers/common to v0.64.0
2025-07-17 17:11:10 +00:00
openshift-merge-bot[bot] 1c0fb347c3
Merge pull request #6292 from containers/renovate/github.com-spf13-pflag-1.x
fix(deps): update module github.com/spf13/pflag to v1.0.7
2025-07-17 14:30:13 +00:00
renovate[bot] e729f60d50
fix(deps): update module github.com/containers/common to v0.64.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-17 05:14:17 +00:00
tomsweeneyredhat cce5f9c32b Bump to Buildah v1.42.0-dev
Bump to the next dev version of Buildah, v1.42.0-dev
for the upstream main branch.

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2025-07-16 21:19:45 -04:00
tomsweeneyredhat 9f185b7777 Bump to Buildah v1.41.0
Bump Buildah to v1.41.0 in preparation for
Podman v5.6.0

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2025-07-16 21:19:45 -04:00
tomsweeneyredhat 2b7cb35d05 Bump to c/storage v1.59.0, c/image v5.36.0,
... c/common v0.64.0

Bump to c/storage v1.59.0, c/image to v5.36.0, and
c/common to v0.64.0 in preparation for Buildah v1.41.0 and
Podman v5.6.0

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2025-07-16 21:19:16 -04:00
renovate[bot] 8b5354ee8c
fix(deps): update module github.com/spf13/pflag to v1.0.7
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-16 22:12:08 +00:00
openshift-merge-bot[bot] b3eab30b05
Merge pull request #6290 from containers/renovate/github.com-containers-image-v5-5.x
fix(deps): update module github.com/containers/image/v5 to v5.36.0
2025-07-16 14:05:02 +00:00
renovate[bot] 9c525fd526
fix(deps): update module github.com/containers/image/v5 to v5.36.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-15 23:26:18 +00:00
openshift-merge-bot[bot] db61e10b3f
Merge pull request #6287 from containers/renovate/github.com-containers-storage-1.x
fix(deps): update module github.com/containers/storage to v1.59.0
2025-07-14 21:07:21 +00:00
Nalin Dahyabhai 7a986ebcfc CI: make runc tests non-blocking
Make the test runs that use runc non-blocking for the Total Success
condition.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2025-07-14 15:44:45 -04:00
renovate[bot] b8c6fcf211
fix(deps): update module github.com/containers/storage to v1.59.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-14 18:59:21 +00:00
openshift-merge-bot[bot] 8403fd604b
Merge pull request #6269 from flouthoc/cache-canidates
Mark stale issues and pull requests / stale (push) Has been cancelled Details
/ closed_issue_discussion_lock (push) Has been cancelled Details
/ call_cron_failures (push) Has been cancelled Details
stage_executor: check platform of cache candidates
2025-07-11 17:45:22 +00:00
flouthoc 3502889676
stage_executor: check platform of cache candidates
When building images for `manifest` list using `--platform` same image
is used for multiple platform if base is `scratch` , following PR adds a
check to always verify `platform` of `cache` with `target`.

Closes: https://github.com/containers/podman/issues/18723

Signed-off-by: flouthoc <flouthoc.git@gmail.com>
2025-07-11 09:44:07 -07:00
openshift-merge-bot[bot] 252cc24fd5
Merge pull request #6240 from 2004joshua/link
feat: ADD/COPY --link support for buildah
2025-07-11 15:27:00 +00:00
openshift-merge-bot[bot] 869997e379
Merge pull request #6278 from containers/renovate/golang.org-x-crypto-0.x
fix(deps): update module golang.org/x/crypto to v0.40.0
2025-07-11 15:07:26 +00:00
openshift-merge-bot[bot] aa807d5863
Merge pull request #6252 from pstoeckle/main
chore(typos): fix typos
2025-07-11 09:20:15 +00:00
renovate[bot] 96588db2e6
fix(deps): update module golang.org/x/crypto to v0.40.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-10 18:07:11 +00:00
openshift-merge-bot[bot] 1c0e79c974
Merge pull request #6277 from containers/renovate/golang.org-x-term-0.x
fix(deps): update module golang.org/x/term to v0.33.0
2025-07-10 18:05:47 +00:00
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