This repository has been archived by the owner on Mar 12, 2020. It is now read-only.
forked from ctelfer/docker-ip-util-check
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use 'swarmctl' for 17.06 and estimate peers when we don't get ipam info
merge fcrisciani/ip-util-check:fix-peers-list and adamancini/ip-util-check:swarmctl
- Loading branch information
1 parent
565f27e
commit e376efd
Showing
3 changed files
with
57 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,33 @@ | ||
FROM ctelfer/swarmctl:latest | ||
RUN apk add --update bash docker jq | ||
FROM golang:1.11-alpine as build-swarmctl | ||
WORKDIR /go/src/github.com/docker | ||
|
||
RUN apk add --no-cache --update bash ca-certificates curl make git openssh-client | ||
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 | ||
|
||
FROM alpine:3.9 as build-protoc | ||
ARG PROTOC_VERSION=3.6.1 | ||
RUN apk add --update --no-cache unzip curl | ||
# download and install protoc binary and .proto files | ||
RUN curl --silent --show-error --location --output protoc.zip \ | ||
https://github.com/google/protobuf/releases/download/v$PROTOC_VERSION/protoc-$PROTOC_VERSION-linux-x86_64.zip \ | ||
&& unzip -d /usr/local protoc.zip include/\* bin/\* \ | ||
&& rm -f protoc.zip | ||
|
||
FROM alpine:3.9 as build-docker | ||
ARG DOCKER_CLIENT_VERSION=18.09.1 | ||
RUN apk add --update --no-cache curl | ||
RUN curl -SsL --output docker.tgz \ | ||
https://download.docker.com/linux/static/stable/x86_64/docker-$DOCKER_CLIENT_VERSION.tgz \ | ||
&& tar xvzf docker.tgz \ | ||
&& cp docker/docker /usr/bin/docker \ | ||
&& rm -f docker.tgz | ||
|
||
FROM alpine:3.9 | ||
RUN apk add --no-cache --update bash jq | ||
# WORKDIR /go/src/github.com/docker | ||
# 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 | ||
COPY --from=build-swarmctl /usr/bin/swarmctl /usr/bin | ||
COPY --from=build-protoc /usr/local/. /usr/local | ||
COPY --from=build-docker /usr/bin/docker /usr/bin | ||
COPY ip-util-check /usr/bin | ||
ENTRYPOINT [ "/usr/bin/ip-util-check" ] | ||
CMD [ "/usr/bin/ip-util-check" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters