From 968b17a9451435787608e04219ffa6261b2e320e Mon Sep 17 00:00:00 2001 From: Chris Ellrich Date: Tue, 27 May 2025 21:20:23 +0200 Subject: [PATCH] add SOPS to tools --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 43a9169..a96372c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,7 @@ FROM alpine ARG HELM_VERSION=3.18.0 ARG KUBECTL_VERSION=1.17.5 +ARG SOPS_VERSION=3.8.1 # Determine architecture RUN case `uname -m` in \ @@ -13,13 +14,15 @@ RUN case `uname -m` in \ *) echo "Unsupported arch" && exit 1 ;; \ esac && echo "ARCH=$ARCH" > /envfile -# Install Helm and kubectl +# Install Helm and kubectl and SOPS RUN . /envfile && \ apk add --no-cache curl ca-certificates bash && \ curl -sL https://get.helm.sh/helm-v${HELM_VERSION}-linux-${ARCH}.tar.gz | tar -xz && \ mv linux-${ARCH}/helm /usr/bin/helm && chmod +x /usr/bin/helm && rm -rf linux-${ARCH} && \ curl -sLO https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/${ARCH}/kubectl && \ mv kubectl /usr/bin/kubectl && chmod +x /usr/bin/kubectl + curl -sLO https://github.com/getsops/sops/releases/download/v${SOPS_VERSION}/sops-v${SOPS_VERSION}.linux.${ARCH} && \ + mv sops-v${SOPS_VERSION}.linux.${ARCH} /usr/bin/sops && chmod +x /usr/bin/sops # Install Node.js RUN apk update && apk add --no-cache nodejs npm