1
0
mirror of https://github.com/containers/buildah.git synced 2026-02-05 09:45:38 +01:00
Commit Graph

5898 Commits

Author SHA1 Message Date
Kir Kolyshkin
f0361414de Makefile,install.md: rm gopath stuff
For quite some time (Go 1.16? To be honest, I don't remember) placing
sources in a specific directory under $GOPATH is no longer required.

[NO NEW TESTS NEEDED]

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2024-11-11 10:49:04 -08:00
Kir Kolyshkin
c07a5eb567 Makefile: rm targets working on ..
It looks like those were added to aim in CI, and is no longer required.
As it is quite unexpected to have make targets operate on directories such
as ../../, let's remove those.

Fix Ubuntu build instructions accordingly (runc binary package is
available in those distros).

[NO NEW TESTS NEEDED]

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2024-11-11 10:49:04 -08:00
Kir Kolyshkin
5adb14cbfe build: rm exclude_graphdriver_devicemapper tag
Since commit c7937cd1d it is no longer necessary to have it.

[NO NEW TESTS NEEDED]

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2024-11-11 10:49:04 -08:00
Kir Kolyshkin
967fb5ec12 Makefile: rm unused var
This is no longer used since commit 3a122aa3c.

[NO NEW TESTS NEEDED]

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2024-11-11 10:49:04 -08:00
openshift-merge-bot[bot]
596bbedbd4 Merge pull request #5833 from edsantiago/bump-again
CI VMs: bump again
2024-11-11 12:42:27 +00:00
openshift-merge-bot[bot]
dbf14dcb9f Merge pull request #5830 from TomSweeneyRedHat/dev/tsweeney/Buildah_v1.38
Bump to c/common v0.61.0, c/image v5.33.0, c/storage v1.56.0, Buildah to v1.38.0
2024-11-11 12:39:07 +00:00
Ed Santiago
6832420b6d CI VMs: bump again
Images built in https://github.com/containers/automation_images/pull/393

Very minor and safe. Purpose is to stabilize those VM images,
which were needed for podman. They include a 6.11.6 kernel
which fixes one bug, and newer pasta in f39 which fixes
another bug.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-11-08 18:44:06 -07:00
tomsweeneyredhat
147765b45c Bump to Buidah v1.39.0-dev
Bump top of tree back to the next dev version.

[NO NEW TESTS NEEDED]

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2024-11-08 16:25:44 -05:00
tomsweeneyredhat
7aa3b5ee04 Bump to Buildah v1.38.0
Bump to Buildah v1.38.0 in preparation of Podman v5.3.0

[NO NEW TESTS NEEDED]

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
v1.38.0
2024-11-08 16:25:44 -05:00
tomsweeneyredhat
e911fe4a28 Bump to c/common v0.61.0, c/image v5.33.0, c/storage v1.56.0
Bump c/common to v0.61.0, c/image to v5.33.0, and c/storage to v1.56.0
in preparation for Buildah v1.38.0 and Podman v5.3.0

[NO NEW TESTS NEEDED]

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2024-11-08 16:25:30 -05:00
openshift-merge-bot[bot]
b51c12c6e7 Merge pull request #5825 from containers/renovate/golang.org-x-crypto-0.x
fix(deps): update module golang.org/x/crypto to v0.29.0
2024-11-08 18:32:41 +00:00
renovate[bot]
356e4d41e3 fix(deps): update module golang.org/x/crypto to v0.29.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-08 16:22:57 +00:00
openshift-merge-bot[bot]
7db27d2bff Merge pull request #5824 from containers/renovate/github.com-moby-buildkit-0.x
fix(deps): update module github.com/moby/buildkit to v0.17.1
2024-11-08 16:17:52 +00:00
openshift-merge-bot[bot]
6e1a389a77 Merge pull request #5823 from containers/renovate/github.com-containers-storage-1.x
fix(deps): update module github.com/containers/storage to v1.56.0
2024-11-08 16:09:36 +00:00
renovate[bot]
6b1e4a58cb fix(deps): update module github.com/moby/buildkit to v0.17.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-08 01:52:41 +00:00
openshift-merge-bot[bot]
663798799b Merge pull request #5820 from edsantiago/f41
CI VMs: bump f40 -> f41
2024-11-07 21:46:52 +00:00
renovate[bot]
3a583bf04a fix(deps): update module github.com/containers/storage to v1.56.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-07 21:13:29 +00:00
Ed Santiago
e3950407f2 tests: skip two ulimit tests
They compare buildah-bud against podman-run, which breaks if
/usr/bin/podman changes its ulimits, as happened recently
in podman PR 24335.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-11-07 08:24:26 -07:00
Ed Santiago
4703b5b0cd CI VMs: bump f40 -> f41
Images built in https://github.com/containers/automation_images/pull/392

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-11-07 08:15:28 -07:00
openshift-merge-bot[bot]
d655c589a7 Merge pull request #5821 from Luap99/lint
tests/tools: update golangci-lint to v1.61.0
2024-11-07 14:32:20 +00:00
openshift-merge-bot[bot]
0385666b30 Merge pull request #5809 from containers/renovate/github.com-opencontainers-runtime-tools-digest
fix(deps): update github.com/opencontainers/runtime-tools digest to 6c9570a
2024-11-07 13:04:16 +00:00
openshift-merge-bot[bot]
50d02415f0 Merge pull request #5812 from containers/renovate/github.com-opencontainers-runc-1.x
fix(deps): update module github.com/opencontainers/runc to v1.2.1
2024-11-07 13:01:31 +00:00
openshift-merge-bot[bot]
0f07c3db73 Merge pull request #5804 from edsantiago/para-prep-bud
tests: bud: make parallel-safe
2024-11-07 12:58:49 +00:00
Paul Holzinger
2cba66285e tests/tools: rebuild tools when we change versions
As I used this locally and the binaires already existed make did not
rebuild. While we could list all go files here nobody should be
modifying files under vendor/ directly so just checking go.mod/sum seems
easiest.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-11-07 11:06:45 +01:00
Paul Holzinger
3cf2ec21bd tests/tools: update golangci-lint to v1.61.0
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-11-07 11:01:48 +01:00
openshift-merge-bot[bot]
0dc5f95893 Merge pull request #5806 from containers/renovate/github.com-moby-buildkit-0.x
fix(deps): update module github.com/moby/buildkit to v0.17.0
2024-11-04 21:30:57 +00:00
renovate[bot]
a7c316ab75 fix(deps): update module github.com/moby/buildkit to v0.17.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-04 19:30:21 +00:00
openshift-merge-bot[bot]
0787ba6360 Merge pull request #5798 from nalind/mounts-implicit-workdir
Handle RUN --mount with relative targets and no configured workdir
2024-11-04 18:54:13 +00:00
Nalin Dahyabhai
701d6bbe91 Handle RUN --mount with relative targets and no configured workdir
When the target location of a RUN --mount is specified as a relative
path, we normally try to convert it to an absolute path by combining it
with the currently-configured working directory.  If there is no such
value, though, the result is still not an absolute path.  Work around
this by using "/" when the configured working directory is "".

Set this field in the `runMountInfo` struct on FreeBSD, as we already
did on Linux.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2024-11-04 09:51:20 -05:00
Ed Santiago
9a5b88d3ee tests: bud: make parallel-safe
- all images pushed to a local registry must have a unique name.
  Bring in safename() helper from podman tests.

- all cache tests must use a private TMPDIR

- in force-compression test, use a custom-crafted image with
  no possibility of sharing layers with any other image that
  any other test might push to the registry.

- use a private crun tmpdir in seccomp test, because crun
  does some unexpected caching.

And, forgive me, a little refactoring of unpleasant duplication

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-11-04 06:02:46 -07:00
renovate[bot]
953fb32591 fix(deps): update module github.com/opencontainers/runc to v1.2.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-02 01:20:00 +00:00
openshift-merge-bot[bot]
1752337176 Merge pull request #5810 from containers/renovate/golang.org-x-exp-digest
fix(deps): update golang.org/x/exp digest to f66d83c
2024-11-01 13:51:41 +00:00
openshift-merge-bot[bot]
92dca53dab Merge pull request #5801 from edsantiago/para-prep-blobcache
tests: blobcache: use unique image name
2024-11-01 13:46:12 +00:00
renovate[bot]
d8d117534e fix(deps): update golang.org/x/exp digest to f66d83c
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-01 03:51:15 +00:00
renovate[bot]
fddd1be386 fix(deps): update github.com/opencontainers/runtime-tools digest to 6c9570a
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-01 01:01:50 +00:00
Ed Santiago
3c4e552eb3 tests: blobcache: use unique image name
Prep work for parallelizing bats tests: when pushing images to
local registry, use a pseudorandom unique name to avoid
possibility of collisions/conflicts with other tests. This
is good practice regardless of whether we run serial or parallel.

Also slight refactor of some duplicate code.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-10-31 05:23:51 -06:00
openshift-merge-bot[bot]
3c43322419 Merge pull request #5803 from edsantiago/para-prep-sbom
tests: sbom: never write to cwd
2024-10-30 16:53:53 +00:00
openshift-merge-bot[bot]
046ce4203e Merge pull request #5802 from edsantiago/para-prep-mkcw
tests: mkcw: bug fixes, refactor
2024-10-30 16:51:11 +00:00
Ed Santiago
1cd6346b3c tests: sbom: never write to cwd
Write output files only to $TEST_SCRATCH_DIR, never to cwd

Reformat overly-long lines for readability (whitespace only changes)

And, in the last test, the output files are plaintext, not json.
Fix filenames accordingly.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-10-29 10:32:49 -06:00
Ed Santiago
2797d22ab3 tests: mkcw: bug fixes, refactor
Bugs found during testing of parallel bats tests:

 - write randomfiles in $TEST_SCRATCH_DIR, not cwd!
 - remove unused & confusing & broken expectedEnv code

And, I couldn't help myself, improve & refactor one test

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-10-29 09:10:18 -06:00
openshift-merge-bot[bot]
9665efd712 Merge pull request #5796 from kolyshkin/runc120
deps: bump runc to v1.2.0
2024-10-23 16:12:07 +00:00
openshift-merge-bot[bot]
83b5dcf219 Merge pull request #5753 from nalind/newline-error
chroot: add newlines at the end of printed error messages
2024-10-23 13:55:54 +00:00
Kir Kolyshkin
aa70771648 deps: bump runc to v1.2.0
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2024-10-22 17:34:56 -07:00
Kir Kolyshkin
e213d65be6 deps: switch to moby/sys/userns
runc/libcontainer/userns package moved to a new home; the old package
will be made obsoleted. Switch to the new package.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2024-10-22 17:34:51 -07:00
openshift-merge-bot[bot]
aeec2a18b4 Merge pull request #5783 from nalind/inet
Integration tests: run git daemon on a random-but-bind()able port
2024-10-22 10:22:57 +00:00
Nalin Dahyabhai
855ec0f0c5 tests/test_runner.sh: remove some redundancies
This wrapper doesn't need to load anything from helpers.bash, because
the various .bats files already do so on their own.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2024-10-21 14:39:55 -04:00
Nalin Dahyabhai
5abf038ddc Integration tests: run git daemon on a random-but-bind()able port
Use a listener helper to bind to an available-according-to-the-kernel
listening port and run a command with its stdio more or less tied to the
connection instead of trying to launch a git daemon directly using a
port number that we can only guess is available.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2024-10-21 14:39:55 -04:00
openshift-merge-bot[bot]
e385eeb8e6 Merge pull request #5782 from containers/renovate/github.com-opencontainers-selinux-1.x
fix(deps): update module github.com/opencontainers/selinux to v1.11.1
2024-10-21 18:17:43 +00:00
openshift-merge-bot[bot]
2551c8f3d1 Merge pull request #5791 from Luap99/vendor-runtime-spec
go.mod: remove unnecessary replace
2024-10-18 14:49:37 +00:00
openshift-merge-bot[bot]
bb9d622f49 Merge pull request #5784 from nalind/secret-flags
Document more buildah build --secret options
2024-10-18 14:24:50 +00:00