Add an image with helm secrets installed
This commit is contained in:
24
dockerfiles/Dockerfile-helmfile-secrets
Normal file
24
dockerfiles/Dockerfile-helmfile-secrets
Normal file
@ -0,0 +1,24 @@
|
||||
ARG BASE_VERSION=latest
|
||||
FROM ghcr.io/allanger/dumb-downloader as builder
|
||||
RUN apt-get update -y && apt-get install tar -y
|
||||
ARG HELM_VERSION=v3.10.3
|
||||
ARG HELMFILE_VERSION=0.151.0
|
||||
ENV RUST_LOG=info
|
||||
RUN dudo -l "https://github.com/helmfile/helmfile/releases/download/v{{ version }}/helmfile_{{ version }}_{{ os }}_{{ arch }}.tar.gz" -d /tmp/helmfile.tar.gz -p $HELMFILE_VERSION
|
||||
RUN dudo -l "https://get.helm.sh/helm-{{ version }}-{{ os }}-{{ arch }}.tar.gz" -d /tmp/helm.tar.gz -p $HELM_VERSION
|
||||
RUN tar -xf /tmp/helm.tar.gz -C /tmp && rm -f /tmp/helm.tar.gz
|
||||
RUN tar -xf /tmp/helmfile.tar.gz -C /tmp && rm -f /tmp/helmfile.tar.gz
|
||||
RUN mkdir /out && for bin in `find /tmp | grep helm`; do cp $bin /out/; done
|
||||
RUN chmod +x /out/helm
|
||||
RUN chmod +x /out/helmfile
|
||||
|
||||
FROM mozilla/sops:v3.7-alpine as sops
|
||||
WORKDIR /out
|
||||
RUN cp $(which sops) /out/sops
|
||||
|
||||
FROM ghcr.io/allanger/check-da-helm-base:${BASE_VERSION}
|
||||
COPY --from=builder /out/ /usr/bin
|
||||
COPY --from=sops /out/ /usr/bin
|
||||
RUN apk update --no-cache && apk add --no-cache jq bash age git
|
||||
RUN helm plugin install https://github.com/jkroepke/helm-secrets --version v4.4.2
|
||||
ENTRYPOINT ["cdh"]
|
Reference in New Issue
Block a user