This repository was archived by the owner on Mar 12, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 1- FROM golang:1.11-alpine
1+ FROM golang:1.11-alpine as build-swarmctl
2+ WORKDIR /go/src/github.com/docker
23
3- RUN apk add --no-cache --update bash ca-certificates curl make git openssh-client unzip jq docker
4+ RUN apk add --no-cache --update bash ca-certificates curl make git openssh-client
5+ 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
46
7+ FROM alpine:3.9 as build-protoc
58# should stay consistent with the version in .circleci/config.yml
69ARG PROTOC_VERSION=3.6.1
710# download and install protoc binary and .proto files
811RUN curl --silent --show-error --location --output protoc.zip \
912 https://github.com/google/protobuf/releases/download/v$PROTOC_VERSION/protoc-$PROTOC_VERSION-linux-x86_64.zip \
1013 && unzip -d /usr/local protoc.zip include/\* bin/\* \
1114 && rm -f protoc.zip
12- WORKDIR /go/src/github.com/docker
13- 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
1415
16+ FROM alpine:3.9
17+
18+ # WORKDIR /go/src/github.com/docker
19+ # 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
21+ COPY --from=build-protoc /usr/local/. /usr/local
1522COPY ip-util-check /usr/bin
1623CMD [ "/usr/bin/ip-util-check" ]
You can’t perform that action at this time.
0 commit comments