@@ -7,6 +7,7 @@ ARG XX_VERSION=1.2.1
77ARG GOVERSIONINFO_VERSION=v1.3.0
88ARG GOTESTSUM_VERSION=v1.10.0
99ARG BUILDX_VERSION=0.11.2
10+ ARG COMPOSE_VERSION=v2.22.0
1011
1112FROM --platform=$BUILDPLATFORM tonistiigi/xx:${XX_VERSION} AS xx
1213
@@ -100,15 +101,13 @@ RUN --mount=ro --mount=type=cache,target=/root/.cache \
100101 TARGET=/out ./scripts/build/plugins e2e/cli-plugins/plugins/*
101102
102103FROM build-base-alpine AS e2e-base-alpine
103- RUN apk add --no-cache build-base curl docker-compose openssl openssh-client
104+ RUN apk add --no-cache build-base curl openssl openssh-client
104105
105106FROM build-base-bullseye AS e2e-base-bullseye
106107RUN apt-get update && apt-get install -y build-essential curl openssl openssh-client
107- ARG COMPOSE_VERSION=1.29.2
108- RUN curl -fsSL https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose && \
109- chmod +x /usr/local/bin/docker-compose
110108
111- FROM docker/buildx-bin:${BUILDX_VERSION} AS buildx
109+ FROM docker/buildx-bin:${BUILDX_VERSION} AS buildx
110+ FROM docker/compose-bin:${COMPOSE_VERSION} AS compose
112111
113112FROM e2e-base-${BASE_VARIANT} AS e2e
114113ARG NOTARY_VERSION=v0.6.1
@@ -118,7 +117,8 @@ RUN echo 'notary.cert' >> /etc/ca-certificates.conf && update-ca-certificates
118117COPY --link --from=gotestsum /out/gotestsum /usr/bin/gotestsum
119118COPY --link --from=build /out ./build/
120119COPY --link --from=build-plugins /out ./build/
121- COPY --link --from=buildx /buildx /usr/libexec/docker/cli-plugins/docker-buildx
120+ COPY --link --from=buildx /buildx /usr/libexec/docker/cli-plugins/docker-buildx
121+ COPY --link --from=compose /docker-compose /usr/libexec/docker/cli-plugins/docker-compose
122122COPY --link . .
123123ENV DOCKER_BUILDKIT=1
124124ENV PATH=/go/src/github.com/docker/cli/build:$PATH
0 commit comments