@@ -5,19 +5,29 @@ RUN apk add --no-cache --update bash ca-certificates curl make git openssh-clien
55RUN git clone https://github.com/docker/swarmkit.git swarmkit && cd swarmkit && make bin/swarmctl && cp bin/swarmctl /usr/bin/swarmctl && rm -rf /go/src/github.com/docker/swarmkit
66
77FROM alpine:3.9 as build-protoc
8- # should stay consistent with the version in .circleci/config.yml
98ARG PROTOC_VERSION=3.6.1
9+ RUN apk add --update --no-cache unzip curl
1010# download and install protoc binary and .proto files
1111RUN curl --silent --show-error --location --output protoc.zip \
1212 https://github.com/google/protobuf/releases/download/v$PROTOC_VERSION/protoc-$PROTOC_VERSION-linux-x86_64.zip \
1313 && unzip -d /usr/local protoc.zip include/\* bin/\* \
1414 && rm -f protoc.zip
1515
16- FROM alpine:3.9
16+ FROM alpine:3.9 as build-docker
17+ ARG DOCKER_CLIENT_VERSION=18.09.1
18+ RUN apk add --update --no-cache curl
19+ RUN curl -SsL --output docker.tgz \
20+ https://download.docker.com/linux/static/stable/x86_64/docker-$DOCKER_CLIENT_VERSION.tgz \
21+ && tar xvzf docker.tgz \
22+ && cp docker/docker /usr/bin/docker \
23+ && rm -f docker.tgz
1724
25+ FROM alpine:3.9
26+ RUN apk add --no-cache --update bash jq
1827# WORKDIR /go/src/github.com/docker
1928# RUN git clone https://github.com/docker/swarmkit.git swarmkit && cd swarmkit && make bin/swarmctl && cp bin/swarmctl /usr/bin/swarmctl && rm -rf /go/src/github.com/docker/swarmkit
20- COPY --from=build-swarmctl /usr/bin/swarmctl /usr/bin/swarmctl
29+ COPY --from=build-swarmctl /usr/bin/swarmctl /usr/bin
2130COPY --from=build-protoc /usr/local/. /usr/local
31+ COPY --from=build-docker /usr/bin/docker /usr/bin
2232COPY ip-util-check /usr/bin
2333CMD [ "/usr/bin/ip-util-check" ]
0 commit comments