Commit Graph

3443 Commits

Author SHA1 Message Date
OpenShift Merge Robot 55d25805d3
Merge pull request #3472 from containers/dependabot/go_modules/github.com/opencontainers/runc-1.0.2
build(deps): bump github.com/opencontainers/runc from 1.0.1 to 1.0.2
2021-08-23 13:31:22 -04:00
dependabot[bot] b367ffa0b1
build(deps): bump github.com/opencontainers/runc from 1.0.1 to 1.0.2
Bumps [github.com/opencontainers/runc](https://github.com/opencontainers/runc) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/opencontainers/runc/releases)
- [Commits](https://github.com/opencontainers/runc/compare/v1.0.1...v1.0.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-23 08:38:07 +00:00
dependabot[bot] e0375fdd5e
build(deps): bump github.com/onsi/gomega from 1.15.0 to 1.16.0
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.15.0...v1.16.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-23 08:37:22 +00:00
dependabot[bot] 9c264c1cd5
build(deps): bump github.com/fsouza/go-dockerclient from 1.7.3 to 1.7.4
Bumps [github.com/fsouza/go-dockerclient](https://github.com/fsouza/go-dockerclient) from 1.7.3 to 1.7.4.
- [Release notes](https://github.com/fsouza/go-dockerclient/releases)
- [Changelog](https://github.com/fsouza/go-dockerclient/blob/main/container_changes_test.go)
- [Commits](https://github.com/fsouza/go-dockerclient/compare/v1.7.3...v1.7.4)

---
updated-dependencies:
- dependency-name: github.com/fsouza/go-dockerclient
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-23 08:36:34 +00:00
Daniel J Walsh 1b3f9cdeeb
Merge pull request #3442 from rhatdan/define
Move DiscoverContainerfile to define directory, so podman can use it
2021-08-21 08:00:05 -04:00
OpenShift Merge Robot f5f2dca6ae
Merge pull request #3462 from containers/dependabot/go_modules/github.com/containers/common-0.43.2
build(deps): bump github.com/containers/common from 0.43.1 to 0.43.2
2021-08-20 13:57:58 -04:00
dependabot[bot] 28cf4bf468
build(deps): bump github.com/containers/common from 0.43.1 to 0.43.2
Bumps [github.com/containers/common](https://github.com/containers/common) from 0.43.1 to 0.43.2.
- [Release notes](https://github.com/containers/common/releases)
- [Commits](https://github.com/containers/common/compare/v0.43.1...v0.43.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-20 09:48:53 +00:00
Daniel J Walsh 9faf946354
Move DiscoverContainerfile to pkg/util directory
Then podman can use it

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-08-20 05:36:47 -04:00
OpenShift Merge Robot 85d98412bd
Merge pull request #3464 from containers/dependabot/go_modules/github.com/containers/image/v5-5.15.2
build(deps): bump github.com/containers/image/v5 from 5.15.1 to 5.15.2
2021-08-20 05:36:23 -04:00
dependabot[bot] 081334e784
build(deps): bump github.com/containers/image/v5 from 5.15.1 to 5.15.2
Bumps [github.com/containers/image/v5](https://github.com/containers/image) from 5.15.1 to 5.15.2.
- [Release notes](https://github.com/containers/image/releases)
- [Commits](https://github.com/containers/image/compare/v5.15.1...v5.15.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-19 08:33:51 +00:00
openshift-ci[bot] 197b9a1fbb
Merge pull request #3441 from rhatdan/dockerignore
Remove some references to Docker
2021-08-17 21:20:40 +00:00
Daniel J Walsh 0306d9a186
Remove some references to Docker
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-08-17 15:38:49 -04:00
openshift-ci[bot] 067b10a84b
Merge pull request #3456 from nalind/platforms3
imagebuildah: handle --manifest directly
2021-08-17 19:28:16 +00:00
openshift-ci[bot] 60a37ef220
Merge pull request #3459 from containers/dependabot/go_modules/github.com/containers/image/v5-5.15.1
build(deps): bump github.com/containers/image/v5 from 5.15.0 to 5.15.1
2021-08-17 19:10:52 +00:00
dependabot[bot] c504863905
build(deps): bump github.com/containers/image/v5 from 5.15.0 to 5.15.1
Bumps [github.com/containers/image/v5](https://github.com/containers/image) from 5.15.0 to 5.15.1.
- [Release notes](https://github.com/containers/image/releases)
- [Commits](https://github.com/containers/image/compare/v5.15.0...v5.15.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-17 15:27:05 +00:00
Nalin Dahyabhai 32c68951a4 imagebuildah: handle --manifest directly
When we're told to add built images to a manifest list, manipulate the
list ourselves, so that if we're creating a list, we won't have a
partially-populated list if some of the builds fail.

This also lets us include all of the platform information (including
variant info, which we can't sniff out after the fact) that we were
given when we started building the images.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2021-08-17 11:05:28 -04:00
openshift-ci[bot] 11f357cb25
Merge pull request #3451 from containers/dependabot/go_modules/github.com/containers/common-0.43.1
build(deps): bump github.com/containers/common from 0.42.1 to 0.43.1
2021-08-17 15:02:14 +00:00
Daniel J Walsh 49740138fa
build(deps): bump github.com/containers/common from 0.42.1 to 0.43.1
Bumps [github.com/containers/common](https://github.com/containers/common) from 0.42.1 to 0.43.1.
- [Release notes](https://github.com/containers/common/releases)
- [Commits](https://github.com/containers/common/compare/v0.42.1...v0.43.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-17 06:19:47 -04:00
openshift-ci[bot] 4e8b90a16b
Merge pull request #3435 from containers/dependabot/go_modules/github.com/opencontainers/selinux-1.8.4
build(deps): bump github.com/opencontainers/selinux from 1.8.3 to 1.8.4
2021-08-17 10:01:12 +00:00
dependabot[bot] a9d7ba6333
build(deps): bump github.com/opencontainers/selinux from 1.8.3 to 1.8.4
Bumps [github.com/opencontainers/selinux](https://github.com/opencontainers/selinux) from 1.8.3 to 1.8.4.
- [Release notes](https://github.com/opencontainers/selinux/releases)
- [Commits](https://github.com/opencontainers/selinux/compare/v1.8.3...v1.8.4)

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

[NO TESTS NEEDED] This is just a revendoring.

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-08-16 16:38:38 -04:00
openshift-ci[bot] 304ea93c39
Merge pull request #3445 from nalind/serve-random
tests/serve/serve.go: use a kernel-assigned port
2021-08-16 19:30:48 +00:00
Nalin Dahyabhai 8148edf47d executor: make sure imageMap is updated with terminatedStage
When the terminatedStage map has its entry for a stage set, make sure
that we set the corresponding entry in the imageMap while holding the
mutex for it, eliminating the sliver of time when the first is set but
the second isn't, which could bite StageExecutor.Execute(), which waits
for the first and then reads the second.

Make terminatedStage record the error if a stage doesn't complete
successfully, and have waitForStage() return that error if it's set.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2021-08-16 13:51:54 -04:00
Nalin Dahyabhai ed413d0080 tests/serve/serve.go: use a kernel-assigned port
When firing up a minimal server to serve up content so that we can
retrieve it using HTTP, make it possible to let the kernel assign us
which port to use, so that the script that's calling us doesn't have to
make a(n occasionally bad) guess.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2021-08-16 13:23:41 -04:00
openshift-ci[bot] 9065d41d46
Merge pull request #3444 from TomSweeneyRedHat/dev/tsweeney/bumpmake
Bump go for vendor-in-container from 1.13 to 1.16
2021-08-13 12:50:42 +00:00
TomSweeneyRedHat 11356996ca Bump go for vendor-in-container from 1.13 to 1.16
While vendoring c/storage v1.34.0 I was having issues
with io/fs not being able to be vendored via calls in the
latest BurntSushi.  Fortunately I remembered a change to
the Skopeo Makefile that @vrothberg had made recently and
viola, that fixed it.

Also per @nalind's review, I've bumped Go from 1.13 to 1.6 in the
.cirrus.yml file.

[NO NEW TESTS NEEDED]

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2021-08-12 15:48:44 -04:00
openshift-ci[bot] 1e560e2c88
Merge pull request #3437 from nalind/platforms2
imagebuildah: move multiple-platform building internal
2021-08-12 18:00:44 +00:00
openshift-ci[bot] b8ea592b4c
Merge pull request #3434 from flouthoc/support-rootfs-overlay
Adds overlay.GenerateStructure in-order generate a permanent overlayfs dir structure.
2021-08-12 15:28:50 +00:00
Nalin Dahyabhai 34d6ee13b8 imagebuildah: move multiple-platform building internal
Move multiple-platform build juggling logic from the CLI wrapper
directly into the imagebuildah package, to make using it easier for
packages that consume us as a library.

This requires reading Dockerfiles into byte slices so that we can
re-parse them for each per-platform build, rather than parsing them
directly, as we used to, since building modifies the parsed tree.

When building for multiple platforms, prefix progress log messages with
the platform description.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2021-08-11 15:24:56 -04:00
flouthoc e62df2b67a Adds GenerateStructure helper function to support rootfs-overlay.
Following function generates a permanent overlayfs struct as compared to tempdir.

[NO NEW TESTS NEEDED]

Signed-off-by: flouthoc <flouthoc.git@gmail.com>
2021-08-12 00:48:36 +05:30
openshift-ci[bot] ea7127cf69
Merge pull request #3440 from rhatdan/codespell
Run codespell to fix spelling
2021-08-11 19:16:57 +00:00
Daniel J Walsh 6064a95baa
Run codespell to fix spelling
[NO TESTS NEEDED]

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-08-11 10:15:44 -04:00
openshift-ci[bot] c6908de514
Merge pull request #3424 from Luap99/resolv
Fix resolv.conf content with run --net=private
2021-08-10 17:29:29 +00:00
openshift-ci[bot] 88f55c8f15
Merge pull request #3409 from ashley-cui/sshagent
Implement SSH RUN mount
2021-08-06 22:35:40 +00:00
openshift-ci[bot] c0c6b18ae5
Merge pull request #3429 from containers/dependabot/go_modules/github.com/onsi/gomega-1.15.0
build(deps): bump github.com/onsi/gomega from 1.14.0 to 1.15.0
2021-08-06 16:36:03 +00:00
Ashley Cui 3a5635f90b Implement SSH RUN mount
Allow ssh socket from host or certain ssh keys to be exposed to a
certain RUN instruction, but not any other instructions, as well as not
showing up in the final image.
This is done by spawining a new agent from buildah and mounting
the listening socket inside the run. SSH_AUTH_SOCK inside the container
will be set to the socket mountpoint. The defualt mountpoint is
/run/buildkit/ssh_agent.{i}

Signed-off-by: Ashley Cui <acui@redhat.com>
2021-08-06 09:00:06 -04:00
dependabot[bot] 80afa137ed
build(deps): bump github.com/onsi/gomega from 1.14.0 to 1.15.0
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.14.0 to 1.15.0.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.14.0...v1.15.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-06 12:33:48 +00:00
openshift-ci[bot] cb714c5bd2
Merge pull request #3431 from vrothberg/fix-podman-11148
run: fix nil deref using the option's logger
2021-08-06 12:19:33 +00:00
openshift-ci[bot] 5e53045cc1
Merge pull request #3430 from containers/dependabot/go_modules/github.com/containerd/containerd-1.5.5
build(deps): bump github.com/containerd/containerd from 1.5.1 to 1.5.5
2021-08-06 12:09:32 +00:00
Paul Holzinger f90481d03a
Fix resolv.conf content with run --net=private
Make sure to use the correct resolv.conf in case of systemd-resolved.
Also filter out 127... nameserver when run in private netns.

Fixes #2780

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2021-08-06 12:32:43 +02:00
Valentin Rothberg 078efc2197 run: fix nil deref using the option's logger
[NO TESTS NEEDED] since I've no idea how to force it.

Reported-in: containers/podman/issues/11148
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2021-08-06 11:13:01 +02:00
dependabot[bot] 9586d35842
build(deps): bump github.com/containerd/containerd from 1.5.1 to 1.5.5
Bumps [github.com/containerd/containerd](https://github.com/containerd/containerd) from 1.5.1 to 1.5.5.
- [Release notes](https://github.com/containerd/containerd/releases)
- [Changelog](https://github.com/containerd/containerd/blob/main/RELEASES.md)
- [Commits](https://github.com/containerd/containerd/compare/v1.5.1...v1.5.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-06 08:28:29 +00:00
openshift-ci[bot] 41ea9343d9
Merge pull request #3402 from nalind/platforms
bud: teach --platform to take a list
2021-08-05 12:26:12 +00:00
Nalin Dahyabhai 4d904fdfc1 make vendor-in-container
It looks like there's some behavior difference between the 1.13 that CI
uses and the 1.16 on my system.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2021-08-04 15:23:11 -04: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
openshift-ci[bot] 0022921a99
Merge pull request #3423 from vrothberg/fix-3415
set base-image annotations
2021-08-03 21:39:33 +00:00
openshift-ci[bot] 9e361da8bd
Merge pull request #3422 from containers/dependabot/go_modules/github.com/opencontainers/selinux-1.8.3
build(deps): bump github.com/opencontainers/selinux from 1.8.2 to 1.8.3
2021-08-03 17:55:03 +00:00
Valentin Rothberg d97694b013 set base-image annotations
Since opencontainers/image-spec/pull/822/ the OCI spec supports two new
annotations to set the fully-qualified name and the digest of the base
image.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2021-08-03 15:51:18 +02:00
openshift-ci[bot] 6329b98dbc
Merge pull request #3418 from TomSweeneyRedHat/dev/tsweeney/fixchanger
[CI:DOCS] Fix CHANGELOG.md
2021-08-03 13:44:15 +00:00
dependabot[bot] 4f30cd1532
build(deps): bump github.com/opencontainers/selinux from 1.8.2 to 1.8.3
Bumps [github.com/opencontainers/selinux](https://github.com/opencontainers/selinux) from 1.8.2 to 1.8.3.
- [Release notes](https://github.com/opencontainers/selinux/releases)
- [Commits](https://github.com/opencontainers/selinux/compare/v1.8.2...v1.8.3)

---
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-08-03 08:31:46 +00:00
TomSweeneyRedHat 7dc724531f [CI:DOCS] Fix CHANGELOG.md
For the 1.22.0 release, I'd a duplicate chunk of the CHANGELOG.md, this corrects that.

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2021-08-02 20:26:46 -04:00