From 7f4b3033bd8ddaaebb20d912c5c4953c96ed6b4c Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Sun, 7 May 2023 11:12:48 +0200 Subject: [PATCH] Install sops with dudo --- dockerfiles/Dockerfile-helmfile-secrets | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/dockerfiles/Dockerfile-helmfile-secrets b/dockerfiles/Dockerfile-helmfile-secrets index f583955..f8fbb1f 100644 --- a/dockerfiles/Dockerfile-helmfile-secrets +++ b/dockerfiles/Dockerfile-helmfile-secrets @@ -1,8 +1,9 @@ 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 +ARG HELM_VERSION=v3.11.3 +ARG HELMFILE_VERSION=0.153.1 +ARG SOPS_VERSION=v3.7.2 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 @@ -11,11 +12,13 @@ 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 +# Download SOPS +RUN dudo -l "https://github.com/mozilla/sops/releases/download/{{ version }}/sops-{{ version }}.{{ os }}.{{ arch }}" -d /out/sops -p $SOPS_VERSION +RUN chmod +x /out/sops FROM ghcr.io/allanger/check-da-helm-base:${BASE_VERSION} COPY --from=builder /out/ /usr/bin -RUN apk update --no-cache && apk add --no-cache jq bash age git &&\ - apk add -X http://dl-cdn.alpinelinux.org/alpine/edge/testing sops +RUN apk update --no-cache && apk add --no-cache jq bash age git musl RUN helm plugin install https://github.com/jkroepke/helm-secrets --version v4.4.2 ENTRYPOINT ["cdh"]