1
0
mirror of https://github.com/moby/buildkit.git synced 2025-04-18 18:04:03 +03:00

7883 Commits

Author SHA1 Message Date
Tõnis Tiigi
e143ae102a
Merge pull request #5918 from thaJeztah/bump_engine_28.1
vendor: github.com/docker/docker, github.com/docker/cli v28.1.0
2025-04-17 14:28:34 -07:00
Tõnis Tiigi
ec67db29aa
Merge pull request #5926 from bpaquet/patch-1
Improve documentation of S3 authentication
2025-04-17 13:53:39 -07:00
Bertrand Paquet
2f8b8c8be0
Improve documentation of S3 authentication
Signed-off-by: Bertrand Paquet <bertrand.paquet@gmail.com>
2025-04-17 21:31:47 +02:00
Tõnis Tiigi
90ad1f9eb0
Merge pull request #5917 from profnandaa/fix-windows-cni-setup
fix: wcow: simplify CNI setup for windows
2025-04-17 10:41:15 -07:00
Tõnis Tiigi
d631837521
Merge pull request #5919 from fiam/alberto/fix-dlv-orig-path
fix(debug): use correct path when copying delve to buildkit-linux-debug
2025-04-17 10:37:57 -07:00
Tõnis Tiigi
a8b7248db0
Merge pull request #5921 from fiam/alberto/update-deprecated-links
chore: update broken links to https://docs.docker.com/registry
2025-04-17 10:35:52 -07:00
Sebastiaan van Stijn
091a5d198a
vendor: github.com/docker/docker, github.com/docker/cli v28.1.0
removes the pkg/atomicwriter from moby

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-04-17 15:47:24 +02:00
Alberto Garcia Hierro
3b3a97449f
chore: update broken links to https://docs.docker.com/registry
Link to https://distribution.github.io/distribution instead

Signed-off-by: Alberto Garcia Hierro <damaso.hierro@docker.com>
2025-04-17 11:15:59 +01:00
Alberto Garcia Hierro
994e666eac
fix(debug): use correct path when copying delve to buildkit-linux-debug
dlv is at /out, not at /usr/bin

Signed-off-by: Alberto Garcia Hierro <damaso.hierro@docker.com>
2025-04-16 21:18:01 +01:00
CrazyMax
b85a5b102c
Merge pull request #5916 from thaJeztah/bump_archive
vendor: github.com/moby/go-archive v0.1.0
2025-04-16 15:09:45 +02:00
Anthony Nandaa
9cae715c26 fix: wcow: simplify CNI setup for windows
To enable CNI networking for WCOW, you needed to provide
long paths when running the daemon, e.g.
```
buildkitd `
    --containerd-cni-config-path="C:\Program Files\containerd\cni\conf\0-containerd-nat.conf" `
    --containerd-cni-binary-dir="C:\Program Files\containerd\cni\bin"
```

Fix this so that the default paths are set in appdefaults,
instead of the one that had be set previously.
Now you can just run: `buildkitd`.

Also, refactor the script for setting up CNI binaries
and configs, to make it easy to refresh the configs
without having to download the binaries afresh.

Signed-off-by: Anthony Nandaa <profnandaa@gmail.com>
2025-04-16 15:39:05 +03:00
Sebastiaan van Stijn
3f0a42ece3
vendor: github.com/moby/go-archive v0.1.0
full diff: https://github.com/moby/go-archive/compare/21f3f3385ab7...v0.1.0

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-04-16 14:00:21 +02:00
Tõnis Tiigi
7fbda524e5
Merge pull request #5911 from jsternberg/protobuf-generated-files
hack: aggregate protobuf includes to a separate stage
2025-04-14 12:18:32 -07:00
Jonathan A. Sternberg
4fc3a2d435
hack: aggregate protobuf includes to a separate stage
This moves the aggregation of the various protobuf includes (binaries
and include files) to a separate stage so the files can be retrieved
more easily by external tools.

Since the canonical way of retrieving the protobuf dependencies is to
use this file and the dependencies can be quite complicated to retrieve,
this makes it easier for outside contributors to retrieve the
dependencies and copy them into their own repositories.

This was possible before by using the `tools` target, but that would
also include the entire `golang` image. Now you can retrieve just the
`protobuf` target to get the binaries and the include files.

Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
2025-04-14 11:00:14 -05:00
CrazyMax
43fc7e8585
Merge pull request #5897 from tonistiigi/local-metadata-transfer
source: add metadata-only transfer option for local source
2025-04-11 17:50:29 +02:00
CrazyMax
50851da650
Merge pull request #5908 from tonistiigi/session-exporter-ref-access
exporter: allow session exporter to access refs
2025-04-11 17:31:42 +02:00
Tonis Tiigi
c66c687542
exporter: allow session exporter to access refs
Expose existing Gateway API file access function to the
session exporter callback so it can make better decisions.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2025-04-11 07:48:20 -07:00
Tonis Tiigi
7ae0d6a903
source: add metadata-only transfer option for local source
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2025-04-11 07:38:29 -07:00
CrazyMax
79124b8aba
Merge pull request #5907 from tonistiigi/session-exporter
exporter: add session exporter capability
2025-04-11 15:37:32 +02:00
Tonis Tiigi
58faf412f3
exporter: add session exporter capability
This allows client to defer exporter selection to
the the time where build has completed.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2025-04-10 22:15:19 -07:00
Tõnis Tiigi
37daea90eb
Merge pull request #5863 from tonistiigi/sort-update
lint: update some sorting code to newer generics based libs
2025-04-09 09:38:30 -07:00
Akihiro Suda
40a5c2d56d
Merge pull request #5855 from AkihiroSuda/deps
go.mod: golang.org/x/* latest
v0.21.0-rc1 dockerfile/1.15.0-rc1 dockerfile/1.15.0-rc1-labs
2025-04-09 22:27:46 +09:00
CrazyMax
889f438c5c
Merge pull request #5892 from tonistiigi/image-manifest-default
remotecache: enable image-manifest by default
2025-04-09 10:13:52 +02:00
Akihiro Suda
11d0efb5e1
go.mod: golang.org/x/* latest
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2025-04-09 13:52:05 +09:00
Tõnis Tiigi
f8c19098c9
Merge pull request #5880 from crazy-max/contrib-nvidia-nopci
contrib: check nvidia drivers and support non PCI-based GPUs for WSL
2025-04-08 09:42:53 -07:00
Tonis Tiigi
f6a7201314
remotecache: enable image-manifest by default
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2025-04-08 09:23:23 -07:00
CrazyMax
e2bf281a8e
Merge pull request #5851 from tonistiigi/dockerfile-target-suggest
dockerfile: add suggestion for mistyped target
2025-04-08 16:20:57 +02:00
CrazyMax
36d70b6c65
Merge pull request #5893 from crazy-max/ci-freebsd-repo-fix
ci: fix freebsd package repository
2025-04-08 14:19:03 +02:00
CrazyMax
08633159ad
ci: fix freebsd package repository
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2025-04-08 11:03:47 +02:00
Tõnis Tiigi
51c2f90c2c
Merge pull request #5891 from jsternberg/moby-go-archive
vendor: change usage of docker/pkg/archive to moby/go-archive
2025-04-07 16:56:14 -07:00
Tõnis Tiigi
609baf2d0d
Merge pull request #5888 from profnandaa/wcow-client-tests-mount
tests: client: windows: add various llb.AddMount related tests
2025-04-07 16:48:00 -07:00
Tõnis Tiigi
7d13a98288
Merge pull request #5886 from GoodOwl/master
add support for cert-manager.io syntax for tls using tlsdir
2025-04-07 14:33:46 -07:00
Tõnis Tiigi
b65adf5b91
Merge pull request #5827 from tonistiigi/prune-min-space-fix
prune: update free-space filter when no max-space set
2025-04-07 11:32:55 -07:00
Tõnis Tiigi
4b9861f67a
Merge pull request #5850 from tonistiigi/file-chmod-x
file: fix X mode to be Linux-compatible
2025-04-07 11:32:15 -07:00
Jonathan A. Sternberg
c179924d9c
vendor: change usage of docker/pkg/archive to moby/go-archive
This changes usage of `github.com/docker/docker/pkg/archive` to
`github.com/moby/go-archive` to reduce dependencies on
`github.com/docker/docker`.

Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
2025-04-07 13:30:56 -05:00
Tõnis Tiigi
8540ef4eed
Merge pull request #5848 from tonistiigi/golangci-source
hack: allow building golangci from source for custom versions
2025-04-07 11:27:38 -07:00
Tõnis Tiigi
22dc720ae0
Merge pull request #5853 from tonistiigi/mirror-worker-tests
tests: integrate mirror into worker tests
2025-04-07 11:27:19 -07:00
Gleb Nebolyubov
5473cb882a add support for cert-manager.io syntax for tls using tlsdir
In kubernetes environment when the certificate is created by cert-manager.io it will be saved as a secret with ca.crt, tls.crt and tls.key instead of the pem files.

Signed-off-by: Gleb Nebolyubov <gleb.nebo@gmail.com>
2025-04-05 08:57:51 +00:00
Tõnis Tiigi
c2acf970ad
Merge pull request #5887 from thaJeztah/bump_docker_28.0.4
vendor: github.com/docker/docker, github.com/docker/cli v28.0.4
2025-04-04 13:47:07 -07:00
Anthony Nandaa
a9ae6b43f7 tests: client: windows: add various llb.AddMount related tests
After completing support for `llb.AddMount` in #5708 --
this made possible to add some more `client` integration tests
that were making `llb.AddMount` calls.

Most of the tests below are related to this:

- [x] testCacheExportCacheKeyLoop
- [x] testOCILayoutSource
- [x] testBuildMultiMount
- [x] testTarExporterSymlink
- [x] testCacheExportIgnoreError
- [x] testBasicCacheImportExport
- [x] testUncompressedLocalCacheImportExport
- [x] testImageManifestRegistryCacheImportExport
- [x] testBasicLocalCacheImportExport
- [x] testBasicInlineCacheImportExport
- [x] testRegistryEmptyCacheExport
- [x] testCachedMounts
- [x] testDuplicateCacheMount
- [x] testRunCacheWithMounts
- [x] testMountWithNoSource
- [x] testProxyEnv
- [x] testRelativeMountpoint
- [x] testValidateDigestOrigin
- [x] testExportAnnotations
- [x] testExportAnnotationsMediaTypes
- [x] testAttestationDefaultSubject
- [x] testAttestationBundle
- [x] testLLBMountPerformance

Skipped tests (due to registry setup issue, to be addressed separately):
- testUncompressedRegistryCacheImportExport
- testBasicRegistryCacheImportExport
- testMultipleRegistryCacheImportExport

Related to #5678

Signed-off-by: Anthony Nandaa <profnandaa@gmail.com>
2025-04-04 11:32:29 +03:00
Sebastiaan van Stijn
ce8f8e025c
vendor: github.com/docker/cli v28.0.4
full diff:

- https://github.com/docker/cli/compare/v28.0.2...v28.0.4
- https://github.com/docker/docker-credential-helpers/compare/v0.8.2...v0.9.3

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-04-03 22:57:54 +02:00
Sebastiaan van Stijn
c547f24d2a
vendor: github.com/docker/docker v28.0.4
full diff: https://github.com/docker/docker/compare/v28.0.2...v28.0.4

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-04-03 22:55:18 +02:00
Tõnis Tiigi
7e2b28d032
Merge pull request #5885 from profnandaa/fix-5807-localmounter-race
fix: wcow: fix race condition in localmounter
2025-04-03 13:51:44 -07:00
Sebastiaan van Stijn
85f7b6f57d
vendor: github.com/moby/sys/user v0.4.0
no diff: same commit, but tagged:

full diff: https://github.com/moby/sys/compare/71f0c5ead442...user/v0.4.0

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-04-03 22:51:39 +02:00
Sebastiaan van Stijn
d5ecf1c725
vendor: github.com/opencontainers/image-spec v1.1.1
full diff: https://github.com/opencontainers/image-spec/compare/v1.1.0...v1.1.1

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-04-03 22:49:12 +02:00
Tõnis Tiigi
cccc7175d3
Merge pull request #5791 from jsternberg/moby-sys-user
vendor: switch from idtools to moby/sys/user
2025-04-03 12:44:06 -07:00
Anthony Nandaa
b3c2303607 fix: wcow: fix race condition in localmounter
> WIP: still going on with investigation to determine
> exactly which process is accessing the file, will
> update on the issue #5807 thread for the records.

Fix the race condition with maximum 2 retries for now.
From several test runs, 1 retry seems to be
enough, even without backoff. Added a simple
linear backoff for each retry starting at 30 ms.

fixes #5807

Signed-off-by: Anthony Nandaa <profnandaa@gmail.com>
2025-04-03 22:14:57 +03:00
Jonathan A. Sternberg
66016a8c63
vendor: switch from idtools to moby/sys/user
Convert usages of `github.com/docker/docker/pkg/idtools` to
`github.com/moby/sys/user` in order to break the dependency between
buildkit and docker.

Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
2025-04-02 10:22:02 -05:00
CrazyMax
f85a66c6a5
contrib: check if nvidia drivers are already installed
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2025-04-01 10:37:13 +02:00
CrazyMax
7f1278d3e8
contrib: support non PCI-based nvidia GPUs for WSL
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2025-03-27 15:30:03 +01:00