2024-10-22 09:28:33 +00:00
|
|
|
FROM golang:1.23.2-bookworm@sha256:2341ddffd3eddb72e0aebab476222fbc24d4a507c4d490a51892ec861bdb71fc as builder
|
2021-04-24 23:39:06 +00:00
|
|
|
|
2023-10-20 00:28:14 +00:00
|
|
|
ENV KUBECTL_VERSION="v1.28.3"
|
|
|
|
ENV HELM_VERSION="v3.13.1"
|
2021-04-24 23:39:06 +00:00
|
|
|
|
2022-09-06 17:46:36 +00:00
|
|
|
RUN go install github.com/onsi/ginkgo/v2/ginkgo@v2.1.6
|
2021-04-24 23:39:06 +00:00
|
|
|
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
|
|
|
|
|
2023-06-15 09:54:18 +00:00
|
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY go.mod go.sum ./
|
|
|
|
RUN go mod download && go mod verify
|
|
|
|
COPY . .
|
|
|
|
WORKDIR /usr/src/app/e2e
|
|
|
|
RUN make e2e-bin
|
|
|
|
|
2024-09-09 13:19:22 +00:00
|
|
|
FROM alpine:3.20.3@sha256:beefdbd8a1da6d2915566fde36db9db0b524eb737fc57cd1367effd16dc0d06d
|
2021-04-24 23:39:06 +00:00
|
|
|
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/
|
|
|
|
|
2023-06-15 09:54:18 +00:00
|
|
|
COPY --from=builder /usr/src/app/e2e/entrypoint.sh /entrypoint.sh
|
|
|
|
COPY --from=builder /usr/src/app/e2e/suites/provider/provider.test /provider.test
|
|
|
|
COPY --from=builder /usr/src/app/e2e/suites/argocd/argocd.test /argocd.test
|
|
|
|
COPY --from=builder /usr/src/app/e2e/suites/flux/flux.test /flux.test
|
|
|
|
COPY --from=builder /usr/src/app/e2e/suites/generator/generator.test /generator.test
|
|
|
|
COPY --from=builder /usr/src/app/e2e/k8s /k8s
|
2021-04-24 23:39:06 +00:00
|
|
|
|
|
|
|
CMD [ "/entrypoint.sh" ]
|