| 123456789101112131415161718192021222324252627282930 |
- ARG GO_VERSION=1.15.3
- FROM golang:$GO_VERSION-buster as builder
- ENV KUBECTL_VERSION="v1.19.2"
- ENV HELM_VERSION="v3.3.4"
- RUN go get -u github.com/onsi/ginkgo/ginkgo
- RUN wget -q https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl -O /usr/local/bin/kubectl && \
- chmod +x /usr/local/bin/kubectl && \
- wget -q https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz -O - | tar -xzO linux-amd64/helm > /usr/local/bin/helm && \
- chmod +x /usr/local/bin/helm
- FROM alpine:3.12
- RUN apk add -U --no-cache \
- ca-certificates \
- bash \
- curl \
- tzdata \
- libc6-compat \
- openssl
- COPY --from=builder /go/bin/ginkgo /usr/local/bin/
- COPY --from=builder /usr/local/bin/kubectl /usr/local/bin/
- COPY --from=builder /usr/local/bin/helm /usr/local/bin/
- COPY entrypoint.sh /entrypoint.sh
- COPY e2e.test /e2e.test
- COPY k8s /k8s
- CMD [ "/entrypoint.sh" ]
|