Skip to content

Commit 9dd2eeb

Browse files
committed
WIP migrate to moby/api and moby/client
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 8f91793 commit 9dd2eeb

Some content is hidden

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

70 files changed

+5649
-173
lines changed

Dockerfile.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
FROM busybox
2+
RUN echo "foo" > /foo

cli-vendor.mod

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
dario.cat/mergo v1.0.0
2+
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1
3+
github.com/beorn7/perks v1.0.1
4+
github.com/cespare/xxhash/v2 v2.2.0
5+
github.com/containerd/containerd v1.7.11
6+
github.com/containerd/log v0.1.0
7+
github.com/distribution/reference v0.5.0
8+
github.com/docker/distribution v2.8.3+incompatible
9+
github.com/docker/docker-credential-helpers v0.8.0
10+
github.com/docker/go v1.5.1-1.0.20160303222718-d30aec9fd63c
11+
github.com/docker/go-connections v0.5.0
12+
github.com/docker/go-metrics v0.0.1
13+
github.com/docker/go-units v0.5.0
14+
github.com/felixge/httpsnoop v1.0.4
15+
github.com/fvbommel/sortorder v1.0.2
16+
github.com/go-logr/logr v1.2.4
17+
github.com/go-logr/stdr v1.2.2
18+
github.com/gogo/protobuf v1.3.2
19+
github.com/golang/protobuf v1.5.3
20+
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510
21+
github.com/gorilla/mux v1.8.1
22+
github.com/inconshreveable/mousetrap v1.1.0
23+
github.com/klauspost/compress v1.17.4
24+
github.com/mattn/go-runewidth v0.0.15
25+
github.com/matttproud/golang_protobuf_extensions v1.0.4
26+
github.com/Microsoft/go-winio v0.6.1
27+
github.com/Microsoft/hcsshim v0.11.4
28+
github.com/miekg/pkcs11 v1.1.1
29+
github.com/mitchellh/mapstructure v1.5.0
30+
github.com/moby/patternmatcher v0.6.0
31+
github.com/moby/sys/sequential v0.5.0
32+
github.com/moby/sys/signal v0.7.0
33+
github.com/moby/sys/symlink v0.2.0
34+
github.com/moby/sys/user v0.1.0
35+
github.com/moby/term v0.5.0
36+
github.com/morikuni/aec v1.0.0
37+
github.com/opencontainers/go-digest v1.0.0
38+
github.com/opencontainers/image-spec v1.1.0-rc5
39+
github.com/pkg/errors v0.9.1
40+
github.com/prometheus/common v0.42.0
41+
github.com/rivo/uniseg v0.2.0
42+
github.com/sirupsen/logrus v1.9.3
43+
github.com/spf13/cobra v1.8.0
44+
github.com/spf13/pflag v1.0.5
45+
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb
46+
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415
47+
github.com/xeipuuv/gojsonschema v1.2.0
48+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.45.0
49+
go.opentelemetry.io/otel v1.19.0
50+
go.opentelemetry.io/otel/metric v1.19.0
51+
go.opentelemetry.io/otel/trace v1.19.0
52+
golang.org/x/crypto v0.17.0
53+
golang.org/x/mod v0.11.0
54+
golang.org/x/net v0.17.0
55+
golang.org/x/sync v0.5.0
56+
golang.org/x/sys v0.15.0
57+
golang.org/x/term v0.15.0
58+
golang.org/x/text v0.14.0
59+
golang.org/x/time v0.3.0
60+
golang.org/x/tools v0.10.0
61+
google.golang.org/protobuf v1.31.0
62+
gopkg.in/yaml.v2 v2.4.0
63+
gotest.tools/v3 v3.5.1
64+
tags.cncf.io/container-device-interface v0.6.2

cmd/compose/bridge.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ import (
2323

2424
"github.com/distribution/reference"
2525
"github.com/docker/cli/cli/command"
26-
"github.com/docker/docker/api/types/image"
2726
"github.com/docker/docker/pkg/stringid"
2827
"github.com/docker/go-units"
28+
"github.com/moby/moby/api/types/image"
2929
"github.com/spf13/cobra"
3030

3131
"github.com/docker/compose/v2/cmd/formatter"

cmd/compose/stats.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222

2323
"github.com/docker/cli/cli/command"
2424
"github.com/docker/cli/cli/command/container"
25-
"github.com/docker/docker/api/types/filters"
25+
"github.com/moby/moby/api/types/filters"
2626
"github.com/spf13/cobra"
2727

2828
"github.com/docker/compose/v2/pkg/api"

cmd/formatter/container.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ import (
2424

2525
"github.com/docker/cli/cli/command/formatter"
2626
"github.com/docker/compose/v2/pkg/api"
27-
"github.com/docker/docker/api/types/container"
2827
"github.com/docker/docker/pkg/stringid"
2928
"github.com/docker/go-units"
29+
"github.com/moby/moby/api/types/container"
3030
)
3131

3232
const (

cmd/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"github.com/docker/cli/cli-plugins/plugin"
2525
"github.com/docker/cli/cli/command"
2626
"github.com/docker/compose/v2/cmd/cmdtrace"
27-
"github.com/docker/docker/client"
27+
"github.com/moby/moby/client"
2828
"github.com/sirupsen/logrus"
2929
"github.com/spf13/cobra"
3030

compose.mod

Lines changed: 186 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,186 @@
1+
dario.cat/mergo v1.0.1
2+
github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d
3+
github.com/AdaLogics/go-fuzz-headers v0.0.0-20230811130428-ced1acdcaa24
4+
github.com/AlecAivazis/survey/v2 v2.3.7
5+
github.com/aws/aws-sdk-go-v2 v1.24.1
6+
github.com/aws/aws-sdk-go-v2/config v1.26.6
7+
github.com/aws/aws-sdk-go-v2/credentials v1.16.16
8+
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.11
9+
github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.10
10+
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.10
11+
github.com/aws/aws-sdk-go-v2/internal/ini v1.7.3
12+
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.4
13+
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.10
14+
github.com/aws/aws-sdk-go-v2/service/sso v1.18.7
15+
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.21.7
16+
github.com/aws/aws-sdk-go-v2/service/sts v1.26.7
17+
github.com/aws/smithy-go v1.19.0
18+
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1
19+
github.com/beorn7/perks v1.0.1
20+
github.com/buger/goterm v1.0.4
21+
github.com/cenkalti/backoff/v4 v4.2.1
22+
github.com/cespare/xxhash/v2 v2.3.0
23+
github.com/compose-spec/compose-go/v2 v2.4.4
24+
github.com/containerd/console v1.0.4
25+
github.com/containerd/containerd v1.7.23
26+
github.com/containerd/containerd/api v1.7.19
27+
github.com/containerd/continuity v0.4.4
28+
github.com/containerd/errdefs v0.3.0
29+
github.com/containerd/log v0.1.0
30+
github.com/containerd/platforms v0.2.1
31+
github.com/containerd/ttrpc v1.2.5
32+
github.com/containerd/typeurl/v2 v2.2.0
33+
github.com/cpuguy83/go-md2man/v2 v2.0.5
34+
github.com/davecgh/go-spew v1.1.1
35+
github.com/distribution/reference v0.6.0
36+
github.com/docker/buildx v0.18.0
37+
github.com/docker/cli v27.3.2-0.20241008150905-cb3048fbebb1+incompatible
38+
github.com/docker/cli-docs-tool v0.8.0
39+
github.com/docker/distribution v2.8.3+incompatible
40+
github.com/docker/docker v27.4.0-rc.1+incompatible
41+
github.com/docker/docker-credential-helpers v0.8.2
42+
github.com/docker/go v1.5.1-1.0.20160303222718-d30aec9fd63c
43+
github.com/docker/go-connections v0.5.0
44+
github.com/docker/go-metrics v0.0.1
45+
github.com/docker/go-units v0.5.0
46+
github.com/eiannone/keyboard v0.0.0-20220611211555-0d226195f203
47+
github.com/emicklei/go-restful/v3 v3.11.0
48+
github.com/felixge/httpsnoop v1.0.4
49+
github.com/fsnotify/fsevents v0.2.0
50+
github.com/fvbommel/sortorder v1.1.0
51+
github.com/go-logr/logr v1.4.1
52+
github.com/go-logr/stdr v1.2.2
53+
github.com/go-openapi/jsonpointer v0.19.6
54+
github.com/go-openapi/jsonreference v0.20.2
55+
github.com/go-openapi/swag v0.22.3
56+
github.com/go-viper/mapstructure/v2 v2.0.0
57+
github.com/gofrs/flock v0.12.1
58+
github.com/gogo/protobuf v1.3.2
59+
github.com/golang/protobuf v1.5.4
60+
github.com/google/gnostic-models v0.6.8
61+
github.com/google/go-cmp v0.6.0
62+
github.com/google/gofuzz v1.2.0
63+
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510
64+
github.com/google/uuid v1.6.0
65+
github.com/gorilla/mux v1.8.1
66+
github.com/gorilla/websocket v1.5.0
67+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0
68+
github.com/hashicorp/errwrap v1.1.0
69+
github.com/hashicorp/go-cleanhttp v0.5.2
70+
github.com/hashicorp/go-multierror v1.1.1
71+
github.com/hashicorp/go-version v1.7.0
72+
github.com/imdario/mergo v0.3.16
73+
github.com/in-toto/in-toto-golang v0.5.0
74+
github.com/inconshreveable/mousetrap v1.1.0
75+
github.com/jonboulle/clockwork v0.4.0
76+
github.com/josharian/intern v1.0.0
77+
github.com/json-iterator/go v1.1.12
78+
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51
79+
github.com/klauspost/compress v1.17.11
80+
github.com/mailru/easyjson v0.7.7
81+
github.com/Masterminds/semver/v3 v3.2.1
82+
github.com/mattn/go-colorable v0.1.13
83+
github.com/mattn/go-isatty v0.0.17
84+
github.com/mattn/go-runewidth v0.0.15
85+
github.com/mattn/go-shellwords v1.0.12
86+
github.com/matttproud/golang_protobuf_extensions v1.0.4
87+
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b
88+
github.com/Microsoft/go-winio v0.6.2
89+
github.com/miekg/pkcs11 v1.1.1
90+
github.com/mitchellh/go-ps v1.0.0
91+
github.com/mitchellh/hashstructure/v2 v2.0.2
92+
github.com/mitchellh/mapstructure v1.5.0
93+
github.com/moby/buildkit v0.17.1
94+
github.com/moby/docker-image-spec v1.3.1
95+
github.com/moby/locker v1.0.1
96+
github.com/moby/patternmatcher v0.6.0
97+
github.com/moby/spdystream v0.2.0
98+
github.com/moby/sys/mountinfo v0.7.2
99+
github.com/moby/sys/sequential v0.6.0
100+
github.com/moby/sys/signal v0.7.1
101+
github.com/moby/sys/symlink v0.3.0
102+
github.com/moby/sys/user v0.3.0
103+
github.com/moby/sys/userns v0.1.0
104+
github.com/moby/term v0.5.0
105+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
106+
github.com/modern-go/reflect2 v1.0.2
107+
github.com/morikuni/aec v1.0.0
108+
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822
109+
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f
110+
github.com/opencontainers/go-digest v1.0.0
111+
github.com/opencontainers/image-spec v1.1.0
112+
github.com/otiai10/copy v1.14.0
113+
github.com/pelletier/go-toml v1.9.5
114+
github.com/pkg/errors v0.9.1
115+
github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10
116+
github.com/pmezard/go-difflib v1.0.0
117+
github.com/prometheus/client_golang v1.17.0
118+
github.com/prometheus/client_model v0.5.0
119+
github.com/prometheus/common v0.44.0
120+
github.com/prometheus/procfs v0.15.1
121+
github.com/r3labs/sse v0.0.0-20210224172625-26fe804710bc
122+
github.com/rivo/uniseg v0.2.0
123+
github.com/russross/blackfriday/v2 v2.1.0
124+
github.com/secure-systems-lab/go-securesystemslib v0.4.0
125+
github.com/serialx/hashring v0.0.0-20200727003509-22c0c7ab6b1b
126+
github.com/shibumi/go-pathspec v1.3.0
127+
github.com/sirupsen/logrus v1.9.3
128+
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
129+
github.com/spf13/cobra v1.8.1
130+
github.com/spf13/pflag v1.0.5
131+
github.com/stretchr/testify v1.9.0
132+
github.com/theupdateframework/notary v0.7.0
133+
github.com/tilt-dev/fsnotify v1.4.8-0.20220602155310-fff9c274a375
134+
github.com/tonistiigi/dchapes-mode v0.0.0-20241001053921-ca0759fec205
135+
github.com/tonistiigi/fsutil v0.0.0-20241028165955-397af5306b5c
136+
github.com/tonistiigi/go-csvvalue v0.0.0-20240710180619-ddb21b71c0b4
137+
github.com/tonistiigi/units v0.0.0-20180711220420-6950e57a87ea
138+
github.com/tonistiigi/vt100 v0.0.0-20240514184818-90bafcd6abab
139+
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb
140+
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415
141+
github.com/xeipuuv/gojsonschema v1.2.0
142+
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.1
143+
go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace v0.46.1
144+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.1
145+
go.opentelemetry.io/otel v1.21.0
146+
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v0.44.0
147+
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v0.44.0
148+
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.21.0
149+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.21.0
150+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.21.0
151+
go.opentelemetry.io/otel/metric v1.21.0
152+
go.opentelemetry.io/otel/sdk v1.21.0
153+
go.opentelemetry.io/otel/sdk/metric v1.21.0
154+
go.opentelemetry.io/otel/trace v1.21.0
155+
go.opentelemetry.io/proto/otlp v1.0.0
156+
go.uber.org/goleak v1.3.0
157+
go.uber.org/mock v0.5.0
158+
golang.org/x/crypto v0.27.0
159+
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0
160+
golang.org/x/net v0.29.0
161+
golang.org/x/oauth2 v0.22.0
162+
golang.org/x/sync v0.9.0
163+
golang.org/x/sys v0.27.0
164+
golang.org/x/term v0.24.0
165+
golang.org/x/text v0.18.0
166+
golang.org/x/time v0.6.0
167+
google.golang.org/genproto v0.0.0-20240123012728-ef4313101c80
168+
google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142
169+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142
170+
google.golang.org/grpc v1.67.1
171+
google.golang.org/protobuf v1.35.1
172+
gopkg.in/cenkalti/backoff.v1 v1.1.0
173+
gopkg.in/inf.v0 v0.9.1
174+
gopkg.in/yaml.v2 v2.4.0
175+
gopkg.in/yaml.v3 v3.0.1
176+
gotest.tools/v3 v3.5.1
177+
k8s.io/api v0.29.2
178+
k8s.io/apimachinery v0.29.2
179+
k8s.io/client-go v0.29.2
180+
k8s.io/klog/v2 v2.110.1
181+
k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00
182+
k8s.io/utils v0.0.0-20230726121419-3b25d923346b
183+
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd
184+
sigs.k8s.io/structured-merge-diff/v4 v4.4.1
185+
sigs.k8s.io/yaml v1.3.0
186+
tags.cncf.io/container-device-interface v0.8.0

docker-compose.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<services>
2+
<web>
3+
<image>nginx:alpine</image>
4+
<ports>8080:80</ports>
5+
</web>
6+
</services>

docker-compose.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
services:
2+
web:
3+
image: nginx:alpine
4+
ports:
5+
- 8080:80
6+
- 10443:443

0 commit comments

Comments
 (0)