@@ -11,6 +11,15 @@ override_dh_auto_build:
1111 # Build the CLI
1212 cd /go/src/github.com/docker/cli && VERSION=$(VERSION ) GITCOMMIT=$(CLI_GITCOMMIT ) LDFLAGS=' ' GO_LINKMODE=dynamic ./scripts/build/binary && DISABLE_WARN_OUTSIDE_CONTAINER=1 LDFLAGS=' ' make manpages
1313
14+ # Build the compose-cli plugin
15+ # FIXME: using GOPROXY, to work around:
16+ # go: github.com/Azure/azure-sdk-for-go@v48.2.0+incompatible: reading github.com/Azure/azure-sdk-for-go/go.mod at revision v48.2.0: unknown revision v48.2.0
17+ cd /go/src/github.com/docker/compose-cli \
18+ && GOPROXY="https://proxy.golang.org" GO111MODULE=on go mod download \
19+ && mkdir -p /usr/libexec/docker/cli-plugins/ \
20+ && GOPROXY="https://proxy.golang.org" GO111MODULE=on GIT_TAG=$(COMPOSE_VERSION) \
21+ make COMPOSE_BINARY=/usr/libexec/docker/cli-plugins/docker-compose -f builder.Makefile compose-plugin
22+
1423 # Build the scan-plugin
1524 # TODO change once we support scan-plugin on other architectures
1625 if [ "$(TARGET_ARCH)" = "amd64" ]; then \
@@ -54,6 +63,9 @@ override_dh_auto_install:
5463 install -D -m 0755 $(shell readlink -e engine/bundles/dynbinary-daemon/docker-proxy) debian/docker-ce/usr/bin/docker-proxy
5564 install -D -m 0755 /usr/local/bin/docker-init debian/docker-ce/usr/bin/docker-init
5665
66+ # docker-compose-plugin install
67+ install -D -m 0755 /usr/libexec/docker/cli-plugins/docker-compose debian/docker-compose-plugin/usr/libexec/docker/cli-plugins/docker-compose
68+
5769 # docker-scan-plugin install
5870 # TODO change once we support scan-plugin on other architectures
5971 if [ "$(TARGET_ARCH)" = "amd64" ]; then \
@@ -80,6 +92,10 @@ override_dh_install:
8092 dh_apparmor --profile-name=docker-ce -pdocker-ce
8193
8294override_dh_gencontrol :
95+ # Use separate version for the compose-plugin package, then generate the other control files as usual
96+ # TODO override "Source" field in control as well (to point to compose-cli, as it doesn't match the package name)
97+ dh_gencontrol -pdocker-compose-plugin -- -v$$ {COMPOSE_VERSION#v}~$$ {DISTRO}-$$ {SUITE}; \
98+
8399 # Use separate version for the scan-plugin package, then generate the other control files as usual
84100 # TODO override "Source" field in control as well (to point to scan-cli-plugin, as it doesn't match the package name)
85101 # TODO change once we support scan-plugin on other architectures (see dpkg-architecture -L)
0 commit comments