From 5234612e94bdc4786cc4335b795f47a177281897 Mon Sep 17 00:00:00 2001 From: Adrian Berger <43774417+adberger@users.noreply.github.com> Date: Tue, 26 Mar 2024 16:39:10 +0100 Subject: [PATCH] Add helm cli to argocd-cmp docker image (#120) --- argocd-cmp/Dockerfile.goreleaser | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/argocd-cmp/Dockerfile.goreleaser b/argocd-cmp/Dockerfile.goreleaser index 65e0834..2b51b3f 100644 --- a/argocd-cmp/Dockerfile.goreleaser +++ b/argocd-cmp/Dockerfile.goreleaser @@ -1,10 +1,15 @@ +FROM alpine as helm +WORKDIR /app +ADD https://get.helm.sh/helm-v3.13.2-linux-amd64.tar.gz helm-v3.13.2-linux-amd64.tar.gz +RUN tar -zxvf helm-v3.13.2-linux-amd64.tar.gz + FROM bash:5 ENV ARGOCD_EXEC_TIMEOUT=90s COPY subst /subst COPY argocd-cmp/cmp.yaml /home/argocd/cmp-server/config/plugin.yaml COPY argocd-cmp/entrypoint.sh /entrypoint.sh +COPY --from=helm /app/linux-amd64/helm /helm RUN adduser -H -D -s /bin/bash -G nobody -u 999 argocd && \ chmod +x /entrypoint.sh USER argocd:nobody ENTRYPOINT ["/entrypoint.sh"] -