Commit Graph

3443 Commits

Author SHA1 Message Date
dependabot[bot] fc37ada27e
build(deps): bump github.com/containers/storage from 1.35.0 to 1.36.0
Bumps [github.com/containers/storage](https://github.com/containers/storage) from 1.35.0 to 1.36.0.
- [Release notes](https://github.com/containers/storage/releases)
- [Changelog](https://github.com/containers/storage/blob/main/docs/containers-storage-changes.md)
- [Commits](https://github.com/containers/storage/compare/v1.35.0...v1.36.0)

---
updated-dependencies:
- dependency-name: github.com/containers/storage
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-13 08:28:27 +00:00
OpenShift Merge Robot 0346b38d8e
Merge pull request #3507 from l0rd/patch-1
Update 05-openshift-rootless-build.md
2021-09-10 07:59:47 -04:00
OpenShift Merge Robot cf31ef5573
Merge pull request #3510 from containers/dependabot/go_modules/github.com/opencontainers/selinux-1.8.5
build(deps): bump github.com/opencontainers/selinux from 1.8.4 to 1.8.5
2021-09-10 07:58:46 -04:00
OpenShift Merge Robot e656823f3e
Merge pull request #3508 from nalind/cross-all
Makefile: update cross targets
2021-09-10 05:41:47 -04:00
Mario Loriedo 973ff95ef7
Merge branch 'main' into patch-1 2021-09-10 11:32:48 +02:00
Mario Loriedo 6468400446 Update 05-openshift-rootless-build.md
Replace buildah "build" command with "build-using-dockerfile"

Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
2021-09-10 11:20:07 +02:00
dependabot[bot] d277035355
build(deps): bump github.com/opencontainers/selinux from 1.8.4 to 1.8.5
Bumps [github.com/opencontainers/selinux](https://github.com/opencontainers/selinux) from 1.8.4 to 1.8.5.
- [Release notes](https://github.com/opencontainers/selinux/releases)
- [Commits](https://github.com/opencontainers/selinux/compare/v1.8.4...v1.8.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-10 08:34:55 +00:00
OpenShift Merge Robot 83cc5a30cb
Merge pull request #3504 from rhatdan/userxattr
Add support for rootless overlay mounts
2021-09-10 03:32:49 -04:00
Nalin Dahyabhai 9560ff5b42 .cirrus.yml: run cross_build_task on Big Sur
Update which version of Mac OS X we use for running the cross-compile
check in CI from Catalina (10.15) to Big Sur (11).

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2021-09-09 15:21:16 -04:00
Nalin Dahyabhai 80d7cb87f1 Makefile: update cross targets
Update the "cross" makefile target to just try building on every Linux,
Darwin, or Windows architecture that the current version of Go supports.

That way, the next time we upgrade Go to a version that supports more
architectures, we won't have to remember to update the list of
cross-compile targets that we try to build in CI to catch
cross-compilation problems.

Marking this as not needing new tests because it directly modifies one
of our CI tests.
[NO NEW TESTS NEEDED]

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2021-09-09 14:19:49 -04:00
Daniel J Walsh 4dc36e85b4
Add support for rootless overlay mounts
This patch sets the userxattr field when run in rootless mode.

Fixes: https://github.com/containers/buildah/issues/3503

Patch came from @flouthoc  Aditya Rajan <arajan@redhat.com>

[NO TESTS NEEDED] Since this can not be tested in CI/CD system yet.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-09-09 13:27:46 -04:00
OpenShift Merge Robot 79ad56907e
Merge pull request #3506 from cevich/bump_unit_timeout
Cirrus: Increase unit-test timeout
2021-09-09 13:27:15 -04:00
Chris Evich 1880cd847f
Cirrus: Increase unit-test timeout
Observed a unit-test typical runtime is around 45m, so a 50m timeout is
cutting things closely given variability in networking and shared vCPU
performance.  Increase the timeout to 1-hour to provide an additional
buffer.

Signed-off-by: Chris Evich <cevich@redhat.com>
2021-09-09 09:28:39 -04:00
OpenShift Merge Robot a5aba5ccd1
Merge pull request #3493 from cevich/clarify_rmi
[CI:DOCS] Clarify rmi w/ manifest/index use
2021-09-07 22:34:22 +02:00
Chris Evich cb9b9d4dd5
Docs: Clarify rmi w/ manifest/index use
Also do some minor re-formatting of the `LIMITATIONS` section.  Reducing
the line-length, and formatting each paragraph into a bullet-item.

Signed-off-by: Chris Evich <cevich@redhat.com>
2021-09-07 16:12:02 -04:00
OpenShift Merge Robot e90f9ec9ba
Merge pull request #3498 from flouthoc/auth-check-temp-auth-file
build: mirror --authfile to filesystem if pointing to FD instead of file
2021-09-07 13:00:40 +02:00
Aditya Rajan 5a24cd02b7 build: mirror --authfile to filesystem if pointing to FD instead of file
Following PR makes sure that buildah mirrors --authfile to a temporary
file in filesystem if arg is pointing to an FD instead of actual file
as FD can be only consumed once.

Fixes: https://github.com/containers/buildah/issues/3070

Signed-off-by: Aditya Rajan <arajan@redhat.com>
2021-09-07 14:51:07 +05:30
OpenShift Merge Robot 58a16f9768
Merge pull request #3499 from leighmcculloch/fix-build-git-with-branch
Fix build with .git url with branch
2021-09-06 12:03:33 +02:00
Leigh McCulloch 7b15d26248 Fix build with .git url with branch
The build with git URL recognizes git URLs by either a git:// scheme prefix, or
any other URL with other schemes such as https:// and a .git suffix.

The build with git URL and branch recognizes the branch name as the fragment
part of the URL, the part after the #.

The .git suffix check is performed by checking that the suffix of the full URL
is .git, however this causes URLs that begin with scheme https://, and have a
.git path suffix, to not be recognized as git URLs when a branch name is
appended.

The logic for checking if the URL path is suffixed with .git should parse the
URL first and consider only the path when looking for the suffix. This change
is implemented in this commit.

This commit also removes the guard within the cloneToDirectory function because
it is unnecessary since every location the function is called the check has
already been carried out.

Signed-off-by: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com>
2021-09-06 00:17:38 -07:00
OpenShift Merge Robot b6c883d1aa
Merge pull request #3492 from flouthoc/manifest-rm-only-manifest
manifest: Make sure manifest `rm` only removes manifests not referenced images.
2021-09-04 12:03:29 +02:00
Aditya Rajan f037ce4463 manifest: rm should remove only manifests not referenced images.
Following commit makes sure that `buildah manifest rm <list>` only removes
the manifest list not referenced images.

Signed-off-by: Aditya Rajan <arajan@redhat.com>
2021-09-03 06:45:00 +05:30
Aditya Rajan 36b74ad49b vendor: bump c/common to v0.43.3-0.20210902095222-a7acc160fb25
Signed-off-by: Aditya Rajan <arajan@redhat.com>
2021-09-02 16:08:45 +05:30
OpenShift Merge Robot e1f747152c
Merge pull request #3487 from kurt-google/uncompress-opt
Avoid rehashing and noop compression writer
2021-09-01 10:06:40 -04:00
Kurt Kartaltepe e80730ae3f Avoid rehashing and noop compression writer
When creating a new image we can avoid hashing before and after compression
when we know compression will not be used. This significantly improves speed
for hashing large containers with --compress=false

There should be no functional differences so tests are not
changed/added.

[NO NEW TESTS NEEDED]

Signed-off-by: Kurt Kartaltepe <kkartaltepe@google.com>
2021-08-31 14:56:08 -07:00
OpenShift Merge Robot 2c09b0725c
Merge pull request #3488 from siretart/patch-1
corrected man page section; .conf file to mention its man page
2021-08-31 06:25:43 -04:00
OpenShift Merge Robot bfd3f696f1
Merge pull request #3486 from nalind/subdirectory-exclusions
copier.Get(): try to avoid descending into directories
2021-08-31 04:16:58 -04:00
Reinhard Tartler 8f61fb2e3b corrected man page section; .conf file to mention its man page
Added as Debian distro patch.

[CI:DOCS]

Original-Author: Dmitry Smirnov <onlyjob@debian.org>
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
2021-08-31 09:20:34 +02:00
Nalin Dahyabhai 239fc6f112 copy: add --max-parallel-downloads to tune that copy option
Add a --max-parallel-downloads flag to allow tuning down from the
default of six blobs at a time, and tune it down to one at a time when
we invoke the helper.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2021-08-30 11:04:14 -04:00
Nalin Dahyabhai 44a129f586 copier.Get(): try to avoid descending into directories
When processing a directory tree, only descend into a directory that is
marked for exclusion if its path is literally a prefix of an exception
pattern.

Subtly, but in a way that's compatible with docker, this means that if
we exclude directory "subdir", but we've been told to also include
"**/file" (with an exclusion pattern of "!**/file"), we won't descend
into "subdir" and find a file named "subdir/file", because "**/file"
doesn't start with "subdir/".

More generally, exclusion patterns that start with "!" which include any
wildcards before their final component technically won't be treated
correctly.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2021-08-30 11:04:14 -04:00
OpenShift Merge Robot 4d2292227f
Merge pull request #3489 from siretart/manpages
Install new manpages to correct sections
2021-08-30 10:50:32 -04:00
OpenShift Merge Robot 516a727d9e
Merge pull request #3483 from flouthoc/support-tagging-manifest-list
tag: Support tagging manifest list instead of resolving to images
2021-08-30 08:21:09 -04:00
flouthoc 82eedac468 tag: Support tagging manifest list instead of resolving to images
Following commit makes sure when `buildah tag` is invoked on a manifest
list, it tags the same manifest list instead of resolving image and
tagiing it.

Signed-off-by: Aditya Rajan <flouthoc.git@gmail.com>
2021-08-30 14:44:58 +05:30
Reinhard Tartler 435eb9ffa5 Install new manpages to correct sections
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
2021-08-29 21:28:53 +02:00
OpenShift Merge Robot cd202bf2c7
Merge pull request #3485 from nalind/conformance-mtime
conformance: tighten up exception specifications
2021-08-27 20:14:53 -04:00
Nalin Dahyabhai ee965317b1 conformance: tighten up exception specifications
Modify how we process exceptions in conformance tests so that we don't
unintentionally disable an attribute comparison (such as "mtime") on
items below a directory when we try to skip that attribute comparison on
the directory itself.

Fix some incorrect specifications for filesystem differences that we're
supposed to ignore, and use the -t flag in more places where we RUN the
`touch` command to create files that end up in the final image.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2021-08-27 14:11:04 -04:00
OpenShift Merge Robot 39bef2cdf1
Merge pull request #3484 from rhatdan/subid
Add support for libsubid
2021-08-27 14:06:56 -04:00
Daniel J Walsh 29ddd4b346
Add support for libsubid
This will enable remote access to /etc/subuid and /etc/subgid
information from ldap services, if shadow-utils ships with a libsubid.

[NO TESTS NEEDED] Since we have no way to test this.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-08-27 08:16:01 -04:00
OpenShift Merge Robot a20b5f4689
Merge pull request #3482 from rhatdan/timestamp
Add epoch time field to buildah images
2021-08-26 10:13:08 -04:00
OpenShift Merge Robot 9855bc797f
Merge pull request #3475 from rhatdan/dockerfile
Fix ownership of /home/build/.local/share/containers
2021-08-26 10:09:08 -04:00
Daniel J Walsh 70f09da250
Merge pull request #3480 from containers/dependabot/go_modules/github.com/containers/image/v5-5.16.0
build(deps): bump github.com/containers/image/v5 from 5.15.2 to 5.16.0
2021-08-26 10:08:29 -04:00
Daniel J Walsh 71e1ebf4bc
Add epoch time field to buildah images
Currently buildah images does not have an easy way to get the epoch
creation time. This field is available in `podman images` as the
Created field. Adding to buildah images to make it consistent.

Fixes: https://github.com/containers/buildah/issues/3478

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-08-26 06:23:15 -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
dependabot[bot] 980d352b29
build(deps): bump github.com/containers/image/v5 from 5.15.2 to 5.16.0
Bumps [github.com/containers/image/v5](https://github.com/containers/image) from 5.15.2 to 5.16.0.
- [Release notes](https://github.com/containers/image/releases)
- [Commits](https://github.com/containers/image/compare/v5.15.2...v5.16.0)

---
updated-dependencies:
- dependency-name: github.com/containers/image/v5
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-26 08:26:50 +00:00
OpenShift Merge Robot 5b056ee652
Merge pull request #3368 from Fodoj/main
Rename bud to build, while keeping an alias for bud.
2021-08-25 14:24:13 -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
OpenShift Merge Robot afe00c31ff
Merge pull request #3476 from nalind/term
Replace golang.org/x/crypto/ssh/terminal with golang.org/x/term
2021-08-25 08:37:02 -04:00
Nalin Dahyabhai 1ec4983d50 Replace golang.org/x/crypto/ssh/terminal with golang.org/x/term
The golang.org/x/crypto/ssh/terminal package has been deprecated and
replaced upstream by golang.org/x/term, so switch to that.  It's a
simple 1:1 replacement.

[NO NEW TESTS NEEDED]

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2021-08-24 15:35:12 -04:00
OpenShift Merge Robot fc1e256f50
Merge pull request #3471 from containers/dependabot/go_modules/github.com/onsi/gomega-1.16.0
build(deps): bump github.com/onsi/gomega from 1.15.0 to 1.16.0
2021-08-24 05:53:55 -04:00
Daniel J Walsh e71191ef5b
Merge branch 'main' into dependabot/go_modules/github.com/onsi/gomega-1.16.0 2021-08-23 13:39:25 -04:00
OpenShift Merge Robot da2b428c56
Merge pull request #3470 from containers/dependabot/go_modules/github.com/fsouza/go-dockerclient-1.7.4
build(deps): bump github.com/fsouza/go-dockerclient from 1.7.3 to 1.7.4
2021-08-23 13:32:21 -04:00