2019-09-30 01:17:11 +00:00
|
|
|
FROM golang:1.13.1-alpine3.10
|
2019-04-29 20:54:51 +00:00
|
|
|
|
2019-09-23 17:57:51 +00:00
|
|
|
RUN apk -U --no-cache add bash git gcc musl-dev docker curl jq coreutils
|
2019-04-29 20:54:51 +00:00
|
|
|
RUN go get -d github.com/heptio/sonobuoy && \
|
2019-10-09 22:06:17 +00:00
|
|
|
git -C /go/src/github.com/heptio/sonobuoy checkout -b current v0.16.1 && \
|
2019-04-29 20:54:51 +00:00
|
|
|
go install github.com/heptio/sonobuoy
|
|
|
|
RUN rm -rf /go/src /go/pkg
|
|
|
|
|
|
|
|
ARG DAPPER_HOST_ARCH
|
|
|
|
ENV ARCH $DAPPER_HOST_ARCH
|
|
|
|
|
|
|
|
RUN curl -sL https://storage.googleapis.com/kubernetes-release/release/$( \
|
|
|
|
curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt \
|
|
|
|
)/bin/linux/${ARCH}/kubectl -o /usr/local/bin/kubectl && \
|
|
|
|
chmod a+x /usr/local/bin/kubectl
|
|
|
|
|
|
|
|
ENV DAPPER_RUN_ARGS --privileged --network host
|
2019-05-02 19:04:45 +00:00
|
|
|
ENV DAPPER_ENV REPO TAG DRONE_TAG IMAGE_NAME
|
2019-04-29 20:54:51 +00:00
|
|
|
ENV DAPPER_SOURCE /go/src/github.com/rancher/k3s/
|
|
|
|
ENV DAPPER_OUTPUT ./dist
|
|
|
|
ENV DAPPER_DOCKER_SOCKET true
|
|
|
|
ENV HOME ${DAPPER_SOURCE}
|
|
|
|
WORKDIR ${DAPPER_SOURCE}
|
|
|
|
|
|
|
|
ENTRYPOINT ["./scripts/entry.sh"]
|
2019-05-02 19:04:45 +00:00
|
|
|
CMD ["sonobuoy-e2e-tests"]
|