Commit Graph

245 Commits

Author SHA1 Message Date
Akihiro Suda
e5516c22a0 integration: add ENTRYPOINT to fix nested cgroup v2
See https://github.com/moby/moby/blob/v20.10.21/hack/dind#L28-L38

Fix issue 3265

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2022-11-10 10:50:13 +09:00
Yan Song
fa43b9f532 test: add test for nydus compression type
Signed-off-by: Yan Song <imeoer@linux.alibaba.com>
2022-11-01 03:21:51 +00:00
CrazyMax
93870a9e0d fix flaky s3 and azblob integration tests
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-10-13 23:19:08 +02:00
Pranav Pandit
522573b29c [remotecache] Add Azure Blob Storage support
This adds experimental support for Azure Blob Storage based remote cache to buildkit. For usage instructions please refer to the updated Readme. We have tried to keep it similar to the S3 based implementation while using equivalent Azure Blob Storage specific semantics where appropriate.
This also adds end-to-end tests to exercise the Azure Blob Storage based cache using the [Azurite emulator](https://docs.microsoft.com/en-us/azure/storage/common/storage-use-azurite).

Co-authored-by: Amr Mahdi <amrh@microsoft.com>
Co-authored-by: Pranav Pandit <pranavp@microsoft.com>
Signed-off-by: Pranav Pandit <pranavp@microsoft.com>
2022-08-25 06:20:22 -07:00
Tõnis Tiigi
c07a6562f1 Merge pull request #3022 from crazy-max/go-1.19
update to Go 1.19
2022-08-24 17:10:11 -07:00
Alex Suraci
4b4796e7b7 add bridge dns integration test
Signed-off-by: Alex Suraci <suraci.alex@gmail.com>
2022-08-21 18:36:42 -04:00
CrazyMax
4a15e742d8 update golangci-lint to 1.48.0 (go 1.19 support) and fix linting issues
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-08-19 10:26:52 +02:00
CrazyMax
1353f411d9 update to go 1.19
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-08-19 10:26:24 +02:00
Pranav Pandit
4ebb56e0fe Remove deprecated function call to fix lint error
Signed-off-by: Pranav Pandit <pranavp@microsoft.com>
2022-08-11 16:44:56 -07:00
Bertrand Paquet
09c5a7c0ee Add s3 remote cache
Signed-off-by: Bertrand Paquet <bertrand.paquet@gmail.com>
2022-05-13 13:13:37 +02:00
Sebastiaan van Stijn
a973fa924f hack: update buildx version to 0.8.2
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-04-07 13:05:56 +02:00
CrazyMax
8679e23647 lint: fix issues with go 1.18
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-03-25 09:06:47 +01:00
CrazyMax
6676f306e0 hack/dockerfiles: upgrade golangci-lint version to v1.45.0
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-03-22 18:46:25 +01:00
CrazyMax
ebdcd31aba update to go 1.18
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-03-22 18:46:25 +01:00
CrazyMax
fd3eeb1e13 chore: fix test dockerd bin perms
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-03-19 18:38:10 +01:00
CrazyMax
e7e6aff66e chore: fix dockerd copy
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-03-18 12:32:10 +01:00
CrazyMax
3c1b5a8ed3 hack: add context var
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-03-18 12:32:10 +01:00
CrazyMax
7779a21531 hack: update buildx version to 0.8.0
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-03-14 05:43:41 +01:00
CrazyMax
46422e3aba ci: opt-in buildinfo attrs with output opt
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-03-01 14:23:48 +01:00
CrazyMax
73f4cb3a47 ci: opt-in buildinfo attrs
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-02-25 20:38:06 +01:00
CrazyMax
8be5521a0c hack: update cni config
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-02-09 23:50:10 +01:00
Tonis Tiigi
01e935cff5 hack: update linter to v1.43
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2022-01-19 11:48:57 -08:00
CrazyMax
cd8c2cb198 hack: use local platform if none defined
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-12-20 22:39:26 +01:00
Davis Schirmer
a507923951 Update buildx version 0.5.1 => 0.7.1
https://github.com/docker/buildx/releases/tag/v0.7.1
Signed-off-by: Davis Schirmer <djds@bghost.xyz>
2021-12-01 02:36:32 -05:00
Davis Schirmer
b479dc75c6 Fix unbound var error for BINDIR, PREFIX
Signed-off-by: Davis Schirmer <djds@bghost.xyz>
2021-12-01 02:36:31 -05:00
Erik Sipsma
d73e62f878 Add initial MergeOp implementation.
This consists of just the base MergeOp with support for merging LLB
results that include deletions using hardlinks as the efficient path
and copies as fallback.

Signed-off-by: Erik Sipsma <erik@sipsma.dev>
2021-11-18 11:10:48 -08:00
CrazyMax
b434e7314b ci: fix git protocol
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-11-02 18:02:32 +01:00
CrazyMax
ec65f412b6 Use gha cache on CI
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-10-05 10:51:48 +02:00
Tonis Tiigi
9c672574e5 hack: allow mounting in workdir in shell
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-09-07 15:47:54 -07:00
Tonis Tiigi
ac61da5890 update go to 1.17
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-08-16 19:56:45 -07:00
Cory Bennett
0b683eb1ff add missing ExtraHosts to gateway exec
Also adding tests for ExtraHosts and NetMode via gateway exec

Signed-off-by: Cory Bennett <cbennett@netflix.com>
2021-08-15 02:51:37 +00:00
Sebastiaan van Stijn
bd4b02d5a8 generated files: use "go install" to install binaries
Now that this repository moved to go1.16, we can use 'go install' to install
these binaries.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-08-13 16:56:57 +02:00
Koichi Shiraishi
9cc9d6c13b hack/dockerfiles: upgrade golangci-lint version to v1.41.1
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
2021-08-11 08:29:12 +09:00
CrazyMax
da34b88a9a Fix protoc link
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-07-28 19:13:16 +02:00
Tonis Tiigi
a5b6c20c38 Update Dockerfile references to use 1.3
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-07-19 13:54:15 -07:00
Tonis Tiigi
cfb73e5007 hack: avoid updating generated proto version
This can be done as a separate change when needed.
Also should analyze if this would affect the gogo
incompatibility issues with newer proto.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-06-15 21:11:27 -07:00
Tonis Tiigi
d44a406213 add hack/shell helper for dev shell environment
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-06-08 14:30:40 -07:00
Tõnis Tiigi
03af083def Merge pull request #2144 from thaJeztah/bump_golang
update to go 1.16
2021-06-08 10:30:33 -07:00
Akihiro Suda
67953d67c0 Merge pull request #2155 from tonistiigi/mirror-fix
test: fix mirror cache handling
2021-06-08 14:45:37 +09:00
Tonis Tiigi
19453d5acc test: fix mirror cache handling
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-06-07 18:59:32 -07:00
Tonis Tiigi
33af267b9a hack: update proto generators for arm64
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-06-07 11:58:10 -07:00
Sebastiaan van Stijn
22dd74ae93 update to go 1.16
This updates all occurrences of Go 1.13 to Go 1.16; also updated
the code that's used to redact credentials in URLs to use the Go
implementation.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-06-02 00:31:57 +02:00
Sebastiaan van Stijn
acbe79f936 generated-files: update protoc to v3.11.4 to match google/protobuf
see https://github.com/golang/protobuf/blob/v1.3.5/.travis.yml#L15

Note that gogo/protobuf v1.3.2 updated protoc to v3.14.0; https://github.com/gogo/protobuf/releases/tag/v1.3.2
however, regenerating protobufs with this switched an import to use
google.golang.org/protobuf/types/known/timestamppb instead of
github.com/golang/protobuf/ptypes/timestamp, so using the older
version for now

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-06-01 23:23:58 +02:00
Sebastiaan van Stijn
056afec140 generated files: update google/protobuf v1.3.5, and fix install for go modules
This patch updates the script and Dockerfile to prevent issues when using go
modules.

The first change is to use a plain `git clone` instead of `go get -d` to download
the source. While (like "pre go-modules") `go get -d` won't *build* the binaries
when go modules are used, it *will* use go modules to download the package
(and dependencies); as a result:

- no git repository will be cloned in gopath
- go modules will be downloaded for "master" (not the version that we specify
  to build)

Note: Once we update to Go 1.16, this script could be updated to use `go install <repo>@version`

The second change is an update to the `update-generated-files` script to detect
the correct version of google/protobuf to use from the `go.mod`'s  `replace` rule,
to make sure we generate (and verify) using the correct version.

The Dockerfile was also updated to update the default versions specified in the
PROTOBUF_VERSION and GOGO_VERSION build-args (although not strictly necessary).

Regenerating the files with this version resulted in a minor formatting change.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-06-01 23:23:53 +02:00
Sebastiaan van Stijn
6d75906c68 hack/install-buildx: allow overriding variables
With this patch:

    PREFIX=$(pwd)/foo/bar VERSION=v0.5.0 sh -c ./install-buildx
    Installing buildx v0.5.0 as /Users/sebastiaan/Projects/test/test_buildx_install/foo/bar/bin/buildx
    + mkdir -p /Users/sebastiaan/Projects/test/test_buildx_install/foo/bar/bin
    + rm -f /Users/sebastiaan/Projects/test/test_buildx_install/foo/bar/bin/buildx.download
    + curl -f -L -o /Users/sebastiaan/Projects/test/test_buildx_install/foo/bar/bin/buildx.download https://github.com/docker/buildx/releases/download/v0.5.0/buildx-v0.5.0.darwin-amd64
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100   634  100   634    0     0   2313      0 --:--:-- --:--:-- --:--:--  2305
    100 58.5M  100 58.5M    0     0  5721k      0  0:00:10  0:00:10 --:--:-- 5947k
    + chmod +x /Users/sebastiaan/Projects/test/test_buildx_install/foo/bar/bin/buildx.download
    + mv /Users/sebastiaan/Projects/test/test_buildx_install/foo/bar/bin/buildx.download /Users/sebastiaan/Projects/test/test_buildx_install/foo/bar/bin/buildx

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-05-06 18:34:05 +02:00
Tonis Tiigi
cc12bc820e lint: update golangci
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-05-03 18:32:34 -07:00
Akihiro Suda
201ba2b0e3 hack: install buildx in util
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2020-12-16 17:31:17 +09:00
Akihiro Suda
97b0904bcd hack/util: disallow using DOCKER_BUILDKIT instead of buildx
DOCKER_BUILDKIT CLI is slightly different from buildx.
It is hard to maintain DOCKER_BUILDKIT as a buildx alternative.

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2020-12-16 17:28:46 +09:00
Tonis Tiigi
245e71fd8b update Dockerfiles to 1.2
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-12-08 15:00:30 -08:00
CrazyMax
8098b43022 Merge remote-tracking branch 'upstream/master' into fix-tagging
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-12-05 04:48:49 +01:00