2019-12-10 21:47:25 +00:00
|
|
|
FROM golang:1.13.5-alpine3.10
|
2019-04-29 20:54:51 +00:00
|
|
|
|
2019-11-01 16:48:28 +00:00
|
|
|
RUN apk -U --no-cache add bash git gcc musl-dev docker curl jq coreutils python2 openssl
|
2019-04-29 20:54:51 +00:00
|
|
|
|
|
|
|
ARG DAPPER_HOST_ARCH
|
|
|
|
ENV ARCH $DAPPER_HOST_ARCH
|
|
|
|
|
2019-11-01 16:48:28 +00:00
|
|
|
RUN if [ "${ARCH}" == "amd64" ] || [ "${ARCH}" == "arm64" ]; then \
|
|
|
|
VERSION=0.17.0 OS=linux && \
|
|
|
|
curl -sL "https://github.com/vmware-tanzu/sonobuoy/releases/download/v${VERSION}/sonobuoy_${VERSION}_${OS}_${ARCH}.tar.gz" | \
|
|
|
|
tar -xzf - -C /usr/local/bin; \
|
|
|
|
fi
|
|
|
|
|
2019-04-29 20:54:51 +00:00
|
|
|
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
|
|
|
|
|
2019-11-01 16:48:28 +00:00
|
|
|
ENV TEST_CLEANUP true
|
|
|
|
|
2019-04-29 20:54:51 +00:00
|
|
|
ENV DAPPER_RUN_ARGS --privileged --network host
|
2020-01-21 02:34:01 +00:00
|
|
|
ENV DAPPER_ENV REPO TAG DRONE_TAG DRONE_SYSTEM_HOST IMAGE_NAME GCLOUD_AUTH
|
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-11-01 16:48:28 +00:00
|
|
|
CMD ["test"]
|