Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[0.10 backport] docker v20.10.3-0.20220831131523-b5a0d7a188ac (22.06-dev) #3172

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
7757b01
vendor: update fsutil to 3c5c7e8
tonistiigi Apr 14, 2022
9a75f58
vendor: upgrade github.com/tonistiigi/fsutil
nicks May 10, 2022
e56392e
vendor: golang.org/x/crypto v0.0.0-20220315160706-3147a52a75dd
thaJeztah Mar 17, 2022
165e013
Bump stargz-snapshotter to v0.11.4
crazy-max Apr 15, 2022
4db7cb8
vendor: github.com/containerd/containerd v1.6.3
crazy-max Apr 28, 2022
5bd617f
Dockerfile: update containerd to v1.6.3
crazy-max Apr 28, 2022
12c4d13
vendor: github.com/containerd/containerd v1.6.4
thaJeztah May 10, 2022
8bf95b7
Update gopkg.in/yaml.v3 to v3.0.1
SaschaSchwarze0 May 31, 2022
3019273
vendor: github.com/containerd/containerd v1.6.6
crazy-max Jun 7, 2022
50d37e9
Dockerfile: update containerd to v1.6.6
crazy-max Jun 7, 2022
ad6fcad
vendor: github.com/opencontainers/runc v1.1.3
crazy-max Jun 14, 2022
8556e10
Dockerfile: update runc to 1.1.3
crazy-max Jun 9, 2022
799687b
Bump up stargz-snapshotter to v0.12.0
ktock Jul 27, 2022
fac69e1
vendor: github.com/microsoft/hcsshim v0.9.4
thaJeztah Sep 1, 2022
073bf8a
vendor: vendor: github.com/containerd/containerd v1.6.8
thaJeztah Sep 1, 2022
d3489fc
vendor: github.com/docker/go-units v0.5.0
thaJeztah Sep 1, 2022
8e15683
vendor: github.com/hashicorp/golang-lru v0.5.4
thaJeztah Sep 1, 2022
9a21c51
vendor: github.com/moby/sys/signal v0.7.0
thaJeztah Sep 1, 2022
1978916
vendor: github.com/opencontainers/image-spec v1.0.3-0.20220303224323-…
thaJeztah Sep 1, 2022
16f8c01
vendor: golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10
thaJeztah Sep 1, 2022
edb0653
vendor: docker v20.10.3-0.20220831131523-b5a0d7a188ac (22.06 branch)
thaJeztah Sep 1, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# syntax=docker/dockerfile-upstream:master

ARG RUNC_VERSION=v1.0.2
ARG CONTAINERD_VERSION=v1.6.2
ARG RUNC_VERSION=v1.1.3
ARG CONTAINERD_VERSION=v1.6.6
# containerd v1.5 for integration tests
ARG CONTAINERD_ALT_VERSION_15=v1.5.11
# containerd v1.4 for integration tests
Expand All @@ -11,7 +11,7 @@ ARG BUILDKIT_TARGET=buildkitd
ARG REGISTRY_VERSION=2.8.0
ARG ROOTLESSKIT_VERSION=v0.14.6
ARG CNI_VERSION=v1.1.0
ARG STARGZ_SNAPSHOTTER_VERSION=v0.11.3
ARG STARGZ_SNAPSHOTTER_VERSION=v0.12.0

ARG ALPINE_VERSION=3.15

Expand Down
5 changes: 3 additions & 2 deletions client/solve.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
"github.com/moby/buildkit/util/entitlements"
ocispecs "github.com/opencontainers/image-spec/specs-go/v1"
"github.com/pkg/errors"
"github.com/tonistiigi/fsutil"
fstypes "github.com/tonistiigi/fsutil/types"
"go.opentelemetry.io/otel/trace"
"golang.org/x/sync/errgroup"
Expand Down Expand Up @@ -342,10 +343,10 @@ func prepareSyncedDirs(def *llb.Definition, localDirs map[string]string) ([]file
return nil, errors.Errorf("%s not a directory", d)
}
}
resetUIDAndGID := func(p string, st *fstypes.Stat) bool {
resetUIDAndGID := func(p string, st *fstypes.Stat) fsutil.MapResult {
st.Uid = 0
st.Gid = 0
return true
return fsutil.MapResultKeep
}

dirs := make([]filesync.SyncedDir, 0, len(localDirs))
Expand Down
6 changes: 3 additions & 3 deletions exporter/local/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,17 @@ func (e *localExporterInstance) Export(ctx context.Context, inp exporter.Source,
walkOpt := &fsutil.WalkOpt{}

if idmap != nil {
walkOpt.Map = func(p string, st *fstypes.Stat) bool {
walkOpt.Map = func(p string, st *fstypes.Stat) fsutil.MapResult {
uid, gid, err := idmap.ToContainer(idtools.Identity{
UID: int(st.Uid),
GID: int(st.Gid),
})
if err != nil {
return false
return fsutil.MapResultExclude
}
st.Uid = uint32(uid)
st.Gid = uint32(gid)
return true
return fsutil.MapResultKeep
}
}

Expand Down
6 changes: 3 additions & 3 deletions exporter/tar/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,17 +109,17 @@ func (e *localExporterInstance) Export(ctx context.Context, inp exporter.Source,
walkOpt := &fsutil.WalkOpt{}

if idmap != nil {
walkOpt.Map = func(p string, st *fstypes.Stat) bool {
walkOpt.Map = func(p string, st *fstypes.Stat) fsutil.MapResult {
uid, gid, err := idmap.ToContainer(idtools.Identity{
UID: int(st.Uid),
GID: int(st.Gid),
})
if err != nil {
return false
return fsutil.MapResultExclude
}
st.Uid = uint32(uid)
st.Gid = uint32(gid)
return true
return fsutil.MapResultKeep
}
}

Expand Down
59 changes: 30 additions & 29 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@ module github.com/moby/buildkit
go 1.17

require (
github.com/Microsoft/go-winio v0.5.1
github.com/Microsoft/hcsshim v0.9.2
github.com/Microsoft/go-winio v0.5.2
github.com/Microsoft/hcsshim v0.9.4
github.com/agext/levenshtein v1.2.3
github.com/armon/circbuf v0.0.0-20190214190532-5111143e8da2
github.com/containerd/console v1.0.3
github.com/containerd/containerd v1.6.3-0.20220401172941-5ff8fce1fcc6
github.com/containerd/continuity v0.2.3-0.20220330195504-d132b287edc8
github.com/containerd/containerd v1.6.8
github.com/containerd/continuity v0.3.0
github.com/containerd/fuse-overlayfs-snapshotter v1.0.2
github.com/containerd/go-cni v1.1.4
github.com/containerd/go-cni v1.1.6
github.com/containerd/go-runc v1.0.0
github.com/containerd/stargz-snapshotter v0.11.3
github.com/containerd/stargz-snapshotter/estargz v0.11.3
github.com/containerd/stargz-snapshotter v0.12.0
github.com/containerd/stargz-snapshotter/estargz v0.12.0
github.com/containerd/typeurl v1.0.2
github.com/coreos/go-systemd/v22 v22.3.2
github.com/docker/cli v20.10.13+incompatible
github.com/docker/cli v20.10.17+incompatible
github.com/docker/distribution v2.8.1+incompatible
github.com/docker/docker v20.10.7+incompatible // master (v22.xx-dev), see replace()
github.com/docker/docker v20.10.17+incompatible // v22.06.x - see "replace" for the actual version
github.com/docker/go-connections v0.4.0
github.com/docker/go-units v0.4.0
github.com/docker/go-units v0.5.0
github.com/gofrs/flock v0.7.3
github.com/gogo/googleapis v1.4.1
github.com/gogo/protobuf v1.3.2
Expand All @@ -31,25 +31,25 @@ require (
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0
github.com/hashicorp/go-immutable-radix v1.3.1
github.com/hashicorp/go-multierror v1.1.1
github.com/hashicorp/golang-lru v0.5.3
github.com/klauspost/compress v1.15.1
github.com/hashicorp/golang-lru v0.5.4
github.com/klauspost/compress v1.15.7
github.com/mitchellh/hashstructure/v2 v2.0.2
github.com/moby/locker v1.0.1
github.com/moby/sys/mountinfo v0.6.0
github.com/moby/sys/signal v0.6.0
github.com/moby/sys/mountinfo v0.6.2
github.com/moby/sys/signal v0.7.0
github.com/morikuni/aec v1.0.0
github.com/opencontainers/go-digest v1.0.0
github.com/opencontainers/image-spec v1.0.3-0.20211202183452-c5a74bcca799
github.com/opencontainers/runc v1.1.1
github.com/opencontainers/image-spec v1.0.3-0.20220303224323-02efb9a75ee1
github.com/opencontainers/runc v1.1.3
github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417
github.com/opencontainers/selinux v1.10.0
github.com/opencontainers/selinux v1.10.1
github.com/pelletier/go-toml v1.9.4
github.com/pkg/errors v0.9.1
github.com/pkg/profile v1.5.0
github.com/serialx/hashring v0.0.0-20190422032157-8b2912629002
github.com/sirupsen/logrus v1.8.1
github.com/stretchr/testify v1.7.0
github.com/tonistiigi/fsutil v0.0.0-20220115021204-b19f7f9cb274
github.com/tonistiigi/fsutil v0.0.0-20220510150904-0dbf3a8a7d58
github.com/tonistiigi/go-actions-cache v0.0.0-20220404170428-0bdeb6e1eac7
github.com/tonistiigi/go-archvariant v1.0.0
github.com/tonistiigi/units v0.0.0-20180711220420-6950e57a87ea
Expand All @@ -67,13 +67,13 @@ require (
go.opentelemetry.io/otel/sdk v1.4.1
go.opentelemetry.io/otel/trace v1.4.1
go.opentelemetry.io/proto/otlp v0.12.0
golang.org/x/crypto v0.0.0-20211202192323-5770296d904e
golang.org/x/net v0.0.0-20211216030914-fe4d6282115f
golang.org/x/crypto v0.0.0-20220315160706-3147a52a75dd
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
golang.org/x/sys v0.0.0-20220114195835-da31bd327af9
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac
google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa
google.golang.org/grpc v1.45.0
golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10
golang.org/x/time v0.0.0-20220210224613-90d013bbcef8
google.golang.org/genproto v0.0.0-20220310185008-1973136f34c6
google.golang.org/grpc v1.47.0
)

require (
Expand All @@ -83,7 +83,7 @@ require (
github.com/containerd/cgroups v1.0.3 // indirect
github.com/containerd/fifo v1.0.0 // indirect
github.com/containerd/ttrpc v1.1.0 // indirect
github.com/containernetworking/cni v1.0.1 // indirect
github.com/containernetworking/cni v1.1.1 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dimchansky/utfbom v1.1.1 // indirect
Expand All @@ -100,12 +100,13 @@ require (
github.com/hanwen/go-fuse/v2 v2.1.1-0.20220112183258-f57e95bda82d // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.1 // indirect
github.com/hashicorp/go-retryablehttp v0.7.0 // indirect
github.com/hashicorp/go-retryablehttp v0.7.1 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
github.com/moby/sys/mount v0.3.0 // indirect
github.com/moby/sys/sequential v0.5.0 // indirect
github.com/moby/term v0.0.0-20210619224110-3f7ff695adc6 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/client_golang v1.12.1 // indirect
github.com/prometheus/client_golang v1.12.2 // indirect
github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/common v0.32.1 // indirect
github.com/prometheus/procfs v0.7.3 // indirect
Expand All @@ -118,7 +119,7 @@ require (
go.opentelemetry.io/otel/metric v0.27.0 // indirect
golang.org/x/text v0.3.7 // indirect
google.golang.org/protobuf v1.27.1 // indirect
gopkg.in/yaml.v3 v3.0.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

replace github.com/docker/docker => github.com/docker/docker v20.10.3-0.20220414164044-61404de7df1a+incompatible
replace github.com/docker/docker => github.com/docker/docker v20.10.3-0.20220831131523-b5a0d7a188ac+incompatible // 22.06 branch (v22.06-dev)
Loading