Dockerfile 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. ARG GO_VERSION=1.17
  2. FROM golang:$GO_VERSION-buster as builder
  3. ENV KUBECTL_VERSION="v1.23.6"
  4. ENV HELM_VERSION="v3.7.1"
  5. RUN go get -u github.com/onsi/ginkgo/v2/ginkgo
  6. RUN wget -q https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl -O /usr/local/bin/kubectl && \
  7. chmod +x /usr/local/bin/kubectl && \
  8. wget -q https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz -O - | tar -xzO linux-amd64/helm > /usr/local/bin/helm && \
  9. chmod +x /usr/local/bin/helm
  10. FROM alpine:3.15.0
  11. RUN apk add -U --no-cache \
  12. ca-certificates \
  13. bash \
  14. curl \
  15. tzdata \
  16. libc6-compat \
  17. openssl
  18. COPY --from=builder /go/bin/ginkgo /usr/local/bin/
  19. COPY --from=builder /usr/local/bin/kubectl /usr/local/bin/
  20. COPY --from=builder /usr/local/bin/helm /usr/local/bin/
  21. COPY entrypoint.sh /entrypoint.sh
  22. COPY suites/provider/provider.test /provider.test
  23. COPY suites/argocd/argocd.test /argocd.test
  24. COPY suites/flux/flux.test /flux.test
  25. COPY k8s /k8s
  26. CMD [ "/entrypoint.sh" ]