Commit Graph

3722 Commits (393bc5b7b07745adfb60b06cf251c1a52caf07ae)

Author SHA1 Message Date
Kohei Tokunaga 393bc5b7b0 Allow using compressions unsupported by containerd on non-overlayfs snapshotter
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
2022-02-21 15:59:57 +09:00
Kohei Tokunaga 21aeba6fd6 Support rootless containerd worker
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
2022-02-21 15:39:14 +09:00
Tõnis Tiigi 7eca34edd2
Merge pull request #2653 from crazy-max/update-containerd-bin
Update containerd bins
2022-02-17 11:15:58 -08:00
CrazyMax 9824607de7
Update containerd bins
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-02-17 14:42:26 +01:00
Akihiro Suda 8821787364
Merge pull request #2650 from tonistiigi/config-load
buildkitd: handle config loading errors correctly
2022-02-17 20:25:15 +09:00
Akihiro Suda 22cf9cb2b4
Merge pull request #2649 from tonistiigi/addr-fix
buildkitd: fix handling multiple addr flags
2022-02-17 20:24:48 +09:00
Tonis Tiigi 46dcd7d9a6 buildkitd: handle config loading errors correctly
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2022-02-16 20:53:17 -08:00
Tonis Tiigi 1a19c6e8bf buildkitd: fix handling multiple addr flags
The issue in the cli package that added extra
field has been fixed now.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2022-02-16 20:41:26 -08:00
Tõnis Tiigi c14bf69e7b
Merge pull request #2637 from ktock/sharemounts
Fix shared cache mounts result in overlay corruption
2022-02-16 16:08:14 -08:00
Tõnis Tiigi d3ff2c350f
Merge pull request #2647 from crazy-max/docs-cni
docs: custom image with cni networking
2022-02-16 16:06:20 -08:00
Tõnis Tiigi 611a6521a2
Merge pull request #2644 from crazy-max/update-containerd
Bump github.com/containerd/containerd to v1.6.0
2022-02-16 16:04:56 -08:00
Tõnis Tiigi 8577488096
Merge pull request #2646 from crazy-max/otel-update
Bump otel dependencies to v1.4.1 (fix race cond)
2022-02-16 16:04:30 -08:00
CrazyMax 259987596d
docs: custom image with cni networking
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-02-16 22:32:09 +01:00
CrazyMax 196ee7492c
Bump otel dependencies to v1.4.1 to fix race cond
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-02-16 22:02:27 +01:00
CrazyMax 653d6218b2
Bump github.com/containerd/containerd to v1.6.0
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-02-16 15:45:08 +01:00
Kohei Tokunaga 1a22b17852 Fix shared cache mounts result in overlay corruption
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
2022-02-16 17:46:07 +09:00
Tõnis Tiigi b36d860675
Merge pull request #2641 from sipsma/fix-progress-panic
progress: fix sync issue in controller.
2022-02-15 17:29:46 -08:00
Erik Sipsma 6ac4a81486 progress: fix sync issue in controller.
A panic was encountered where writes to progress status hit a nil
writer. While not easy to reproduce, this commit fixes a likely culprit.
The use of atomics in the controller was not safe against a race such as
the following:
1. One goroutine calls Start, incrementing count but not yet setting
   writer.
2. A second goroutine calls Start, increments count again but sees that
   count >1 and thus doesn't try to set writer.
3. The second goroutine then calls Status, assuming the writer has been
   set, but the first goroutine still hasn't set the writer yet, causing
   a nil pointer exception.

This commit fixes that issue by just using a mutex instead of atomics.
It also adds a nil check for the writer just to be safe against panics
due to unknown issues in the future as missing a status update is much
better than buildkitd crashing.

Signed-off-by: Erik Sipsma <erik@sipsma.dev>
2022-02-15 09:57:44 -08:00
Tõnis Tiigi 1e6032cec2
Merge pull request #2635 from crazy-max/otel-update
Bump otel dependencies to v1.4.0/v0.29.0
2022-02-15 09:56:14 -08:00
Tõnis Tiigi f8cee37fd5
Merge pull request #2640 from crazy-max/update-go-cni
Bump github.com/containerd/go-cni to v1.1.3
2022-02-15 09:55:39 -08:00
CrazyMax 7979e9c01d
Bump github.com/containerd/go-cni to v1.1.3
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-02-15 16:41:37 +01:00
CrazyMax e109747340
Bump otel dependencies to v1.4.0/v0.29.0
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-02-15 07:18:35 +01:00
Tõnis Tiigi 1fbdce1d05
Merge pull request #2608 from crazy-max/update-containerd
Bump github.com/containerd/containerd to v1.6.0-rc.2
2022-02-14 14:31:04 -08:00
Tõnis Tiigi 0b9cd24a74
Merge pull request #2630 from tonistiigi/cross-repo-fix
Fix cross-repo push fallback when access to the source repo is not granted
2022-02-14 14:23:38 -08:00
Tõnis Tiigi 61027554b7
Merge pull request #2596 from tonistiigi/copy-link
dockerfile: add COPY --link for copy via merging layers
2022-02-14 14:23:23 -08:00
Tõnis Tiigi 0fab75a169
Merge pull request #2476 from crazy-max/buildinfo-attrs
buildinfo: add build attributes and frontend
2022-02-14 14:22:45 -08:00
CrazyMax 9cd97fb726
buildinfo: check nil attrs
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-02-14 22:55:37 +01:00
CrazyMax c89c82088d
Bump github.com/containerd/containerd to v1.6.0-rc.2
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-02-14 21:59:28 +01:00
CrazyMax b42e54726c
docs: update metadata output example with buildinfo
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-02-14 21:55:21 +01:00
CrazyMax cdaafb9303
buildinfo: use metadata to set frontend build sources
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-02-14 21:55:20 +01:00
CrazyMax ed62fae04e
buildinfo: dockerfile tests
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-02-14 21:55:20 +01:00
CrazyMax b352c9d5d2
buildinfo: client tests
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-02-14 21:55:20 +01:00
CrazyMax b2e5d1938d
buildinfo: set frontend attrs to bridge result
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-02-14 21:55:20 +01:00
CrazyMax 7d0f8e4408
buildinfo: filter out control args
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-02-14 21:55:19 +01:00
CrazyMax 83a483a9fe
buildinfo: opt-in inline build attributes
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-02-14 21:55:19 +01:00
CrazyMax c29411b41a
buildinfo: add build attributes and frontend
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-02-14 21:55:19 +01:00
CrazyMax b4e37a867f
buildinfo: refactor
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-02-14 21:55:18 +01:00
Tõnis Tiigi 58bac77c86
Merge pull request #2588 from tonistiigi/amd64-variants-support
amd64 variants support
2022-02-14 11:45:56 -08:00
Akihiro Suda 4286ee1840
Merge pull request #2634 from tonistiigi/binfmt-v6.2.0
Dockerfile: update qemu binfmt to v6.2.0
2022-02-15 04:28:55 +09:00
Tonis Tiigi 28d6aec189 Dockerfile: update qemu binfmt to v6.2.0
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2022-02-14 10:38:09 -08:00
Tõnis Tiigi 08bbd66658
Merge pull request #2629 from tonistiigi/etag-weak
http: handle weak etags on comparisons
2022-02-14 09:52:08 -08:00
Tõnis Tiigi 560e97728c
Merge pull request #2632 from crazy-max/bump-go-cni
Bump github.com/containerd/go-cni to v1.1.2
2022-02-14 08:37:03 -08:00
CrazyMax 6ec3990319
Bump github.com/containerd/go-cni to v1.1.2
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-02-14 16:18:34 +01:00
CrazyMax 6db8ec03e9
Merge pull request #2622 from moby/dependabot/go_modules/github.com/docker/distribution-2.8.0incompatible
build(deps): bump github.com/docker/distribution from 2.7.1+incompatible to 2.8.0+incompatible
2022-02-14 11:49:10 +01:00
Tonis Tiigi ed0408ac52 authorizer: default token expiration to 60s
When server does not return expiration time for token
default to 60s. This replaces previous solution
in error handling that broke cross-repo push.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2022-02-13 21:51:15 -08:00
Tonis Tiigi 9004de8804 Revert "Remove potentially expired tokens."
This reverts commit 9b7a5fc618.

This patch casues issues for cross-repo mounts
when user doesn't have credentials for source repo
and fallback needs to happen.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2022-02-13 21:24:23 -08:00
Tonis Tiigi 4d0a3f9ff3 http: handle weak etags on comparisons
When server returns a weak etag, the prefix can
cause a mismatch on direct comparison with old value.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2022-02-13 21:21:38 -08:00
dependabot[bot] f231fa0a8b
build(deps): bump github.com/docker/distribution
Bumps [github.com/docker/distribution](https://github.com/docker/distribution) from 2.7.1+incompatible to 2.8.0+incompatible.
- [Release notes](https://github.com/docker/distribution/releases)
- [Commits](https://github.com/docker/distribution/compare/v2.7.1...v2.8.0)

---
updated-dependencies:
- dependency-name: github.com/docker/distribution
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-12 12:08:21 +00:00
CrazyMax 63eff24da0
Merge pull request #2624 from tonistiigi/update-docker-0211
vendor: update docker and fsutil
2022-02-12 13:07:18 +01:00
Tonis Tiigi 76870ee06f vendor: update docker and fsutil
Brings in fixes for the pattern matcher.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2022-02-11 22:17:22 -08:00