Skip to content

Instantly share code, notes, and snippets.

@ddebroy
Created March 28, 2018 22:27
Show Gist options
  • Select an option

  • Save ddebroy/e418a59bce049cea3ef68f47d6055f78 to your computer and use it in GitHub Desktop.

Select an option

Save ddebroy/e418a59bce049cea3ef68f47d6055f78 to your computer and use it in GitHub Desktop.
network-test-image-builder
FROM golang:1.8-alpine
RUN apk add --update bash git
WORKDIR /go/src/github.com/docker/libnetwork/cmd/test-image/
COPY . ./
RUN go get github.com/sirupsen/logrus
RUN mkdir -p /go/bin/
RUN go install
CMD ["ls", "/go/bin/"]
FROM nicolaka/netshoot
COPY --from=0 /go/bin/test-image /usr/local/bin/network-tester
ENTRYPOINT ["/usr/local/bin/network-tester"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment