Commit Graph

358 Commits

Author SHA1 Message Date
David Shea 344fa6ef01 Bump version to 1.26.9
[NO NEW TESTS NEEDED]

Signed-off-by: David Shea <dshea@redhat.com>
2025-01-24 14:19:19 -05:00
David Shea 60b40b9313 [release-1.29] Bump to 1.26.8
Signed-off-by: David Shea <dshea@redhat.com>
2024-10-23 12:48:42 -04:00
tomsweeneyredhat 301b7b0a09 [release-1.26] Bump Buildah to v1.26.7
As the title says.  This will fix Buldah for CVE-2024-1753.

[NO NEW TESTS NEEDED]

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2024-04-04 18:20:45 -04:00
Nalin Dahyabhai fbfbec6ce4 tag v1.26.6
[NO NEW TESTS NEEDED]

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2022-12-08 16:56:57 -05:00
Nalin Dahyabhai 491f037774 tag v1.26.5
[NO NEW TESTS NEEDED]

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2022-09-20 13:03:55 -04:00
Nalin Dahyabhai c69455d42c tag v1.26.4
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2022-08-03 12:24:01 -04:00
Aditya R bcc29527fc
release: bump to v1.26.3
[NO NEW TESTS NEEDED]
[NO TESTS NEEDED]

Signed-off-by: Aditya R <arajan@redhat.com>
2022-08-03 01:28:16 +05:30
Nalin Dahyabhai dd64afc51e contrib/rpm/buildah.spec: fix `rpm` parser warnings
The `rpm` command warns about commas in changelog entry starters, so fix
them and add a validation script so that we don't backslide.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2022-07-05 13:38:47 -04:00
tomsweeneyredhat b5dd10d1f0 Bump to v1.26.2
As the title says.  Bumping to v1.26.2

[NO NEW TESTS NEEDED]

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2022-07-05 09:46:55 -04:00
tomsweeneyredhat 6e2ec2eb0f
Bump to v1.26.1
[NO TESTS NEEDED]

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2022-05-04 17:49:35 -04:00
tomsweeneyredhat 0a9d6e6eae Bump to v1.26.0
As the title says.

[NO TESTS NEEDED]

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2022-05-04 12:28:07 -04:00
Chris Evich cc5e80f6de
Cirrus: Update CI VMs to F36
Signed-off-by: Chris Evich <cevich@redhat.com>
2022-04-28 10:37:33 -04:00
tomsweeneyredhat faebb9fdb2 Bump back to v1.26.0-dev
As the title says

[NO NEW TESTS NEEDED]

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2022-03-30 12:13:41 -04:00
tomsweeneyredhat fcf94e3982 Bump to v1.25.1
As the title says

[NO NEW TESTS NEEDED]

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2022-03-30 12:12:48 -04:00
tomsweeneyredhat 822a288ba9 Bump to v1.26.0-dev
[NO NEW TESTS NEEDED]

As the title says.

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2022-03-25 10:25:56 -04:00
tomsweeneyredhat cdcaaf51b3 Bump to v1.25.0
[NO NEW TESTS NEEDED]

As the title says.

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2022-03-25 10:07:31 -04:00
Valentin Rothberg 61005c76bc buildah image: install cpp
Ship `cpp` with the Buildah container images to make sure that
preprocessing .in files works as expected and documented.

Fixes: #3822
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2022-03-17 09:36:42 +01:00
Aditya R 5eccef1482
cirrus: add seperate task and matrix for rootless
Split rootless testing into its own cirrus task and do not merge it with
existing rootless tests.

Signed-off-by: Aditya R <arajan@redhat.com>
2022-03-08 15:08:12 +05:30
Aditya R 165e984b50
buildah: test rootless integration
Add cirrus boiler plate for rootless testing infrastructure.
Following commit introduces only neccassary foundation and skeleton
which will be used by rootless testing of buildah.

[NO NEW TESTS NEEDED]

Signed-off-by: Aditya R <arajan@redhat.com>
2022-03-08 14:57:43 +05:30
tomsweeneyredhat 4b658974d0 Bump back to 1.25.0-dev
[NO TESTS NEEDED]

Bump back to 1.25.0-dev

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2022-02-16 12:15:58 -05:00
tomsweeneyredhat ce608bcecd Bump to v1.24.2
[NO TESTS NEEDED]

As the title says.

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2022-02-16 12:12:21 -05:00
OpenShift Merge Robot 7fb3197ed1
Merge pull request #3775 from chmouel/increase-subuid-subgid
Increase subuid/subgid to 65536
2022-02-16 10:59:41 -05:00
Chmouel Boudjnah 41d384c3bc Increase subuid/subgid to 65535
We have a limit of 50000 for subuid and subgid in the buildah container image
for the build user which may be too low for when running rootless

Increasing the value to 65535 skipping build own id (1000) which should be good
enough for most cases.

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2022-02-16 09:16:12 +01:00
Giuseppe Scrivano 5a999cfbd5
buildah: new global option --cgroup-manager
allow to override the cgroup manager with a global option
--cgroup-manager=MANAGER that has the same semantic as Podman.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2022-02-14 14:39:21 +01:00
tomsweeneyredhat ebe22cdbb9 Bump back to v1.25.0-dev
[NO TESTS NEEDED}

As the title says.

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2022-02-03 16:38:27 -05:00
tomsweeneyredhat 28f7884b7b Bump to v1.24.1
[NO TESTS NEEDED]

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2022-02-03 16:34:16 -05:00
tomsweeneyredhat 97ba8c1bb2 Bump to v1.25.0-dev
[NO TESTS NEEDED]

As the title says.

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2022-01-26 16:52:23 -05:00
tomsweeneyredhat 29f6b4f706 Bump to v1.24.0
[NO TESTS NEEDED]

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2022-01-26 16:48:03 -05:00
Paul Holzinger d7ccff3edb
Fix default CNI paths
We need to use the default from containers.conf and not hardcode them in
buildah. This fixes an issue with the cni network backend since it would
try to access /etc/cni/net.d/ even as rootless user. This regression was
introduced in commit f9cff07b81.

Also hide the cni flags as we do not expect users to change this. The
recommended way is to change them in containers.conf.

[NO NEW TESTS NEEDED]

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2022-01-10 15:49:43 +01:00
Chris Evich 0b3e75a23c
Cirrus: Bump up to Fedora 35 & Ubuntu 21.10
The Fedora 35 cloud images have switched to UEFI boot with a GPT
partition. Formerly, all Fedora images included support for runtime
re-partitioning. However, the requirement to test alternate storage
has since been dropped/removed.  Rather than maintain a disused
feature, and supporting scripts, these Fedora VM images have reverted
to the default: Automatically resize to 100% on boot.

Signed-off-by: Chris Evich <cevich@redhat.com>
2021-11-18 14:07:50 -05:00
Nalin Dahyabhai 9f9f32cedd config: support the variant field
Add the variant field, along with methods for setting and querying it,
and expose them in the `buildah config` and `buildah inspect` commands.

When setting an initial architecture for a container based on an image
which doesn't contain an architecture, or from "scratch", normalize the
architecture name we've been given, and set both it and the variant
field at the same time.

Provide normalized architecture+variant values in `buildah info`.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2021-11-05 09:37:00 -04:00
Chris Evich 6542126b9d
Cirrus: Fix defunct package metadata breaking cache
During VM image build, a number of packages are downloaded but not
installed, since they may interfere with some testing.  Then at runtime,
where required, the packages are installed from cache and used.
However, between image build and runtime it's possible the repository
contents change, which will invalidate the package cache.  Since the
`--no-download --ignore-missing` options were used, the install will
fail.

Ref: https://github.com/containers/automation_images/issues/95

Fortunately, when it comes to the docker packages, no other dependencies
are required and so `apt-get` isn't required.  Switch to using a simple
dpkg install command on the necessary files.  If this ever breaks due
to new dependencies, the list of files may simply be updated.

Signed-off-by: Chris Evich <cevich@redhat.com>
2021-10-01 15:39:32 -04:00
Nalin Dahyabhai 100d5b12eb buildah build: add --all-platforms
Add a --all-platforms that instructs the builder to build for the
intersection of all platforms for which the build's base images are
available.  Returns an error if any of them aren't references to
manifest lists.  We've learned that we can't really trust architecture
and OS information stored in image config blobs, so we don't try to
salvage that case.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2021-09-29 15:43:46 -04:00
Chris Evich 1156cf0759
Update VM Images + Drop prior-ubuntu testing
These images contain a workaround for:
     https://github.com/containers/podman/issues/11123

Ref: https://github.com/containers/podman/issues/11070
     https://github.com/containers/automation_images/pull/88

Signed-off-by: Chris Evich <cevich@redhat.com>
2021-09-15 14:28:53 -04:00
Daniel J Walsh 5fbfcf9794
Bump to v1.24.0-dev
[NO TESTS NEEDED]

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-09-13 16:38:37 -04:00
Daniel J Walsh 37fe4e86c2
Bump to v1.23.0
[NO TESTS NEEDED]

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-09-13 16:38:37 -04:00
Daniel J Walsh 75bbfdf3c0
Fix ownership of /home/build/.local/share/containers
Fixes: https://github.com/containers/buildah/issues/3457

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-08-26 06:21:37 -04:00
Kirill Shirinkin 2d822034f8 Rename bud to build, while keeping an alias for to bud.
Signed-off-by: Kirill Shirinkin <kirill@hey.com>
2021-08-25 17:56:58 +02:00
Nalin Dahyabhai ae08e01e49 bud: teach --platform to take a list
Add a pkg/parse.PlatformsFromOptions() which understands a "variant"
value as an optional third value in an OS/ARCH[/VARIANT] argument value,
which accepts a comma-separated list of them, and which returns a list
of platforms.

Teach "from" and "pull" about the --platform option and add integration
tests for them, warning if --platform was given multiple values.

Add a define.BuildOptions.JobSemaphore which an imagebuildah executor
will use in preference to one that it might allocate for itself.

In main(), allocate a JobSemaphore if the number of jobs is not 0 (which
we treat as "unlimited", and continue to allow executors to do).

In addManifest(), take a lock on the manifest list's image ID so that we
don't overwrite changes that another thread might be making while we're
attempting to make changes to it.  In main(), create an empty list if
the list doesn't already exist before we start down this path, so that
we don't get two threads trying to create that manifest list at the same
time later on.  Two processes could still try to create the same list
twice, but it's an incremental improvement.

Finally, if we've been given multiple platforms to build for, run their
builds concurrently and gather up their results.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2021-08-04 15:23:10 -04:00
TomSweeneyRedHat c4346ef47f Bump to v1.23.0-dev [NO TESTS NEEDED]
[NO TESTS NEEDED]
As the title says.

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2021-08-02 14:18:04 -04:00
TomSweeneyRedHat e6ea308d6d Bump to v1.22.0 [NO TESTS NEEDED]
[NO TESTS NEEDED]

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2021-08-02 14:17:56 -04:00
Daniel J Walsh abf6ea0e4f
Fix handling of --restore shadow-utils
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-07-27 13:33:47 -04:00
Daniel J Walsh 410c866212
Just restore protections of shadow-utils
Base images don't have shadow-utils permissions set correctly, this
change should speed up the building of images a little bit.

[NO TESTS NEEDED] This does not change buildah in any way, so no need to
tests.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-07-19 08:58:38 -04:00
Valentin Rothberg fbd99d001d vendor containers/common@main
The `IgnorePlatform` options has been removed from the
`LookupImageOptions` in libimage to properly support multi-arch images.
Buildah always set it to true.

Also temporarily remove /usr/share/containers/containers.conf.  c/common
is now throwing warnings when facing unknown keys which unfortunately is
the case with the upstream containers.conf and ultimately breaks CI
since some output checks are failing.

Once an updated containers.conf has been shipped, we can revert the
change.

[NO TESTS NEEDED]

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2021-07-07 13:28:20 +02:00
Chris Evich eff2bd2cd1
Cirrus: Install docker from package cache
Installing packages at runtime (from an external source) is problematic
for many reasons.  Specifically in the case of buildah/docker
conformance testing, it means the current "latest" pacakges are
always installed.  This is a problem as new release branches are
created, because it presents an opportunity for test-environment changes
to happen after buildah/test code is stabilized.

Fix this by using new/special VM images which cache the required docker
packages.  At runtime then, the required packages may be installed from
this cache instead of reaching out to the repository.  Since images used
by tests on release branches never change, this will also serve to
stabilize the package versions for that specific environment.

Signed-off-by: Chris Evich <cevich@redhat.com>
2021-06-29 11:01:27 -04:00
Daniel J Walsh cfe911a3f0
Change references from master to main
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-06-23 11:03:24 -04:00
dependabot[bot] 6c039137e2
build(deps): bump github.com/onsi/ginkgo from 1.16.3 to 1.16.4
Also fix the build.spec file to pass version tests.

Bumps [github.com/onsi/ginkgo](https://github.com/onsi/ginkgo) from 1.16.3 to 1.16.4.
- [Release notes](https://github.com/onsi/ginkgo/releases)
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/ginkgo/compare/v1.16.3...v1.16.4)

---
updated-dependencies:
- dependency-name: github.com/onsi/ginkgo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-06-09 06:21:06 -04:00
Daniel J Walsh e9a875b769
Add volumes to make running buildah within a container easier
[NO TESTS NEEDED] Since this is just changing Dockerfiles for use on
quay.io.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-05-27 06:21:05 -04:00
TomSweeneyRedHat 23924afa06 Bump to v1.21.1-dev [NO TESTS NEEDED]
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2021-05-19 17:58:27 -04:00
TomSweeneyRedHat 5e3515c5b0 Bump to v1.21.0 - [NO TESTS NEEDED]
[NO TESTS NEEDED] As the title says

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2021-05-19 17:47:55 -04:00