Skip to content

Commit dca98e3

Browse files
authored
Merge pull request docker#2843 from thaJeztah/bump_docker_buildkit
vendor: buildkit v0.8.0-rc2, docker, containerd, and dependencies
2 parents 3faad7a + 40ec81a commit dca98e3

File tree

189 files changed

+21054
-4761
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

189 files changed

+21054
-4761
lines changed

cli/command/image/build/dockerignore.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"os"
55
"path/filepath"
66

7-
"github.com/docker/docker/builder/dockerignore"
87
"github.com/docker/docker/pkg/fileutils"
8+
"github.com/moby/buildkit/frontend/dockerfile/dockerignore"
99
)
1010

1111
// ReadDockerignore reads the .dockerignore file in the context directory and

cli/command/image/build_buildkit.go

+13-4
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import (
3232
"github.com/moby/buildkit/session/sshforward/sshprovider"
3333
"github.com/moby/buildkit/util/appcontext"
3434
"github.com/moby/buildkit/util/progress/progressui"
35+
"github.com/moby/buildkit/util/progress/progresswriter"
3536
"github.com/pkg/errors"
3637
fsutiltypes "github.com/tonistiigi/fsutil/types"
3738
"github.com/tonistiigi/go-rosetta"
@@ -176,7 +177,8 @@ func runBuildBuildKit(dockerCli command.Cli, options buildOptions) error {
176177
}))
177178
}
178179

179-
s.Allow(authprovider.NewDockerAuthProvider(os.Stderr))
180+
dockerAuthProvider := authprovider.NewDockerAuthProvider(os.Stderr)
181+
s.Allow(dockerAuthProvider)
180182
if len(options.secrets) > 0 {
181183
sp, err := parseSecretSpecs(options.secrets)
182184
if err != nil {
@@ -241,14 +243,14 @@ func runBuildBuildKit(dockerCli command.Cli, options buildOptions) error {
241243
buildOptions.SessionID = s.ID()
242244
buildOptions.BuildID = buildID
243245
buildOptions.Outputs = outputs
244-
return doBuild(ctx, eg, dockerCli, stdoutUsed, options, buildOptions)
246+
return doBuild(ctx, eg, dockerCli, stdoutUsed, options, buildOptions, dockerAuthProvider)
245247
})
246248

247249
return eg.Wait()
248250
}
249251

250252
//nolint: gocyclo
251-
func doBuild(ctx context.Context, eg *errgroup.Group, dockerCli command.Cli, stdoutUsed bool, options buildOptions, buildOptions types.ImageBuildOptions) (finalErr error) {
253+
func doBuild(ctx context.Context, eg *errgroup.Group, dockerCli command.Cli, stdoutUsed bool, options buildOptions, buildOptions types.ImageBuildOptions, at session.Attachable) (finalErr error) {
252254
response, err := dockerCli.Client().ImageBuild(context.Background(), nil, buildOptions)
253255
if err != nil {
254256
return err
@@ -279,10 +281,17 @@ func doBuild(ctx context.Context, eg *errgroup.Group, dockerCli command.Cli, std
279281
if cons, err := console.ConsoleFromFile(out); err == nil && (options.progress == "auto" || options.progress == "tty") {
280282
c = cons
281283
}
282-
// not using shared context to not disrupt display but let is finish reporting errors
284+
// not using shared context to not disrupt display but let it finish reporting errors
283285
eg.Go(func() error {
284286
return progressui.DisplaySolveStatus(context.TODO(), "", c, out, displayCh)
285287
})
288+
if s, ok := at.(interface {
289+
SetLogger(progresswriter.Logger)
290+
}); ok {
291+
s.SetLogger(func(s *client.SolveStatus) {
292+
displayCh <- s
293+
})
294+
}
286295
}
287296

288297
if options.quiet {

cli/command/swarm/unlock.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"github.com/docker/docker/api/types/swarm"
1414
"github.com/pkg/errors"
1515
"github.com/spf13/cobra"
16-
"golang.org/x/crypto/ssh/terminal"
16+
"golang.org/x/term"
1717
)
1818

1919
func newUnlockCommand(dockerCli command.Cli) *cobra.Command {
@@ -63,7 +63,7 @@ func runUnlock(dockerCli command.Cli) error {
6363
func readKey(in *streams.In, prompt string) (string, error) {
6464
if in.IsTerminal() {
6565
fmt.Print(prompt)
66-
dt, err := terminal.ReadPassword(int(in.FD()))
66+
dt, err := term.ReadPassword(int(in.FD()))
6767
fmt.Println()
6868
return string(dt), err
6969
}

vendor.conf

+12-8
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,17 @@ github.com/Azure/go-ansiterm d6e3b3328b783f23731bc4d05887
44
github.com/beorn7/perks 37c8de3658fcb183f997c4e13e8337516ab753e6 # v1.0.1
55
github.com/cespare/xxhash/v2 d7df74196a9e781ede915320c11c378c1b2f3a1f # v2.1.1
66
github.com/containerd/console 5d7e1412f07b502a01029ea20e20e0d2be31fa7c # v1.0.1
7-
github.com/containerd/containerd c623d1b36f09f8ef6536a057bd658b3aa8632828 # v1.4.1
7+
github.com/containerd/containerd 0edc412565dcc6e3d6125ff9e4b009ad4b89c638 # master (v1.5.0-dev)
88
github.com/containerd/continuity efbc4488d8fe1bdc16bde3b2d2990d9b3a899165
9-
github.com/containerd/cgroups 318312a373405e5e91134d8063d04d59768a1bff
9+
github.com/containerd/cgroups 0b889c03f102012f1d93a97ddd3ef71cd6f4f510
10+
github.com/containerd/typeurl cd3ce7159eae562a4f60ceff37dada11a939d247 # v1.0.1
1011
github.com/coreos/etcd d57e8b8d97adfc4a6c224fe116714bf1a1f3beb9 # v3.3.12
1112
github.com/cpuguy83/go-md2man/v2 f79a8a8ca69da163eee19ab442bedad7a35bba5a # v2.0.0
1213
github.com/creack/pty 2a38352e8b4d7ab6c336eef107e42a55e72e7fbc # v1.1.11
1314
github.com/davecgh/go-spew 8991bc29aa16c548c550c7ff78260e27b9ab7c73 # v1.1.1
1415
github.com/docker/compose-on-kubernetes 78e6a00beda64ac8ccb9fec787e601fe2ce0d5bb # v0.5.0-alpha1
1516
github.com/docker/distribution 0d3efadf0154c2b8a4e7b6621fff9809655cc580
16-
github.com/docker/docker af34b94a78a194ae9bce48a200241d08c05b7187
17+
github.com/docker/docker 6c0a036dce2051cc0d73221965e76e3d2e6a8a3a # master (v20.10.0-dev)
1718
github.com/docker/docker-credential-helpers 54f0238b6bf101fc3ad3b34114cb5520beb562f5 # v0.6.3
1819
github.com/docker/go d30aec9fd63c35133f8f79c3412ad91a3b08be06 # Contains a customized version of canonical/json and is used by Notary. The package is periodically rebased on current Go versions.
1920
github.com/docker/go-connections 7395e3f8aa162843a74ed6d48e79627d9792ac55 # v0.4.0
@@ -27,6 +28,7 @@ github.com/gofrs/flock 6caa7350c26b838538005fae7dbe
2728
github.com/gogo/googleapis 01e0f9cca9b92166042241267ee2a5cdf5cff46c # v1.3.2
2829
github.com/gogo/protobuf 5628607bb4c51c3157aacc3a50f0ab707582b805 # v1.3.1
2930
github.com/golang/glog 23def4e6c14b4da8ac2ed8007337bc5eb5007998
31+
github.com/golang/groupcache 869f871628b6baa9cfbc11732cdf6546b17c1298
3032
github.com/golang/protobuf 84668698ea25b64748563aa20726db66a6b8d299 # v1.3.5
3133
github.com/google/go-cmp 3af367b6b30c263d47e8895973edcca9a49cf029 # v0.2.0
3234
github.com/google/gofuzz 24818f796faf91cd76ec7bddd72458fbced7a6c1
@@ -46,16 +48,16 @@ github.com/Microsoft/go-winio 5b44b70ab3ab4d291a7c1d28afe7
4648
github.com/Microsoft/hcsshim 5bc557dd210ff2caf615e6e22d398123de77fc11 # v0.8.9
4749
github.com/miekg/pkcs11 210dc1e16747c5ba98a03bcbcf728c38086ea357 # v1.0.3
4850
github.com/mitchellh/mapstructure d16e9488127408e67948eb43b6d3fbb9f222da10 # v1.3.2
49-
github.com/moby/buildkit 4d1f260e8490ec438ab66e08bb105577aca0ce06
51+
github.com/moby/buildkit fcb87e6b8ccf3631a65799cc56caa76f9117816e # v0.8.0-rc2
5052
github.com/moby/sys 1bc8673b57550ddf85262eb0fed0aac651a37dab # symlink/v0.1.0 (latest tag, either mount/vXXX, mountinfo/vXXX or symlink/vXXX)
51-
github.com/moby/term 7f0af18e79f2784809e9cef63d0df5aa2c79d76e
53+
github.com/moby/term bea5bbe245bf407372d477f1361d2ff042d2f556
5254
github.com/modern-go/concurrent bacd9c7ef1dd9b15be4a9909b8ac7a4e313eec94 # 1.0.3
5355
github.com/modern-go/reflect2 4b7aa43c6742a2c18fdef89dd197aaae7dac7ccd # 1.0.1
5456
github.com/morikuni/aec 39771216ff4c63d11f5e604076f9c45e8be1067b # v1.0.0
5557
github.com/opencontainers/go-digest ea51bea511f75cfa3ef6098cc253c5c3609b037a # v1.0.0
5658
github.com/opencontainers/image-spec d60099175f88c47cd379c4738d158884749ed235 # v1.0.1
5759
github.com/opencontainers/runc ff819c7e9184c13b7c2607fe6c30ae19403a7aff # v1.0.0-rc92
58-
github.com/opentracing/opentracing-go 1361b9cd60be79c4c3a7fa9841b3c132e40066a7
60+
github.com/opentracing/opentracing-go d34af3eaa63c4d08ab54863a4bdd0daa45212e12 # v1.2.0
5961
github.com/pkg/errors 614d223910a179a466c1767a985424175c39b465 # v0.9.1
6062
github.com/prometheus/client_golang 6edbbd9e560190e318cdc5b4d3e630b442858380 # v1.6.0
6163
github.com/prometheus/client_model 7bc5445566f0fe75b15de23e6b93886e982d7bf9 # v0.2.0
@@ -67,17 +69,19 @@ github.com/sirupsen/logrus 6699a89a232f3db797f2e2806398
6769
github.com/spf13/cobra 86f8bfd7fef868a174e1b606783bd7f5c82ddf8f # v1.1.1
6870
github.com/spf13/pflag 2e9d26c8c37aae03e3f9d4e90b7116f5accb7cab # v1.0.5
6971
github.com/theupdateframework/notary d6e1431feb32348e0650bf7551ac5cffd01d857b # v0.6.1
70-
github.com/tonistiigi/fsutil ae3a8d753069d0f76fbee396457e8b6cfd7cb8c3
72+
github.com/tonistiigi/fsutil 0834f99b7b85462efb69b4f571a4fa3ca7da5ac9
7173
github.com/tonistiigi/go-rosetta f79598599c5d34ea253b56a1d7c89bc6a96de7db
7274
github.com/tonistiigi/units 6950e57a87eaf136bbe44ef2ec8e75b9e3569de2
7375
github.com/xeipuuv/gojsonpointer 02993c407bfbf5f6dae44c4f4b1cf6a39b5fc5bb
7476
github.com/xeipuuv/gojsonreference bd5ef7bd5415a7ac448318e64f11a24cd21e594b
7577
github.com/xeipuuv/gojsonschema 82fcdeb203eb6ab2a67d0a623d9c19e5e5a64927 # v1.2.0
76-
golang.org/x/crypto 75b288015ac94e66e3d6715fb68a9b41bf046ec2
78+
go.opencensus.io d835ff86be02193d324330acdb7d65546b05f814 # v0.22.3
79+
golang.org/x/crypto c1f2f97bffc9c53fc40a1a28a5b460094c0050d9
7780
golang.org/x/net ab34263943818b32f575efc978a3d24e80b04bd7
7881
golang.org/x/oauth2 bf48bf16ab8d622ce64ec6ce98d2c98f916b6303
7982
golang.org/x/sync cd5d95a43a6e21273425c7ae415d3df9ea832eeb
8083
golang.org/x/sys eeed37f84f13f52d35e095e8023ba65671ff86a1
84+
golang.org/x/term f5c789dd3221ff39d752ac54467d762de7cfbec6
8185
golang.org/x/text 23ae387dee1f90d29a23c0e87ee0b46038fbed0e # v0.3.3
8286
golang.org/x/time 555d28b269f0569763d25dbe1a237ae74c6bcc82
8387
google.golang.org/genproto 3f1135a288c9a07e340ae8ba4cc6c7065a3160e8

0 commit comments

Comments
 (0)