Skip to content

Commit

Permalink
Add SOPS support
Browse files Browse the repository at this point in the history
  • Loading branch information
rassie committed May 17, 2024
1 parent 24aea79 commit c23e076
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ ARG TARGETARCH
ADD https://get.helm.sh/helm-v${HELM_VERSION}-linux-${TARGETARCH}.tar.gz /tmp/tarballs/
RUN tar zxvf /tmp/tarballs/*.tar.gz -C /usr/local/bin/ --strip-components=1 linux-${TARGETARCH}/helm

# sops: encrypting secrets
FROM ubuntu:22.04 as sops
ARG SOPS_VERSION=3.8.1
ARG ARCH=amd64
ADD --chmod=755 https://github.com/getsops/sops/releases/download/v${SOPS_VERSION}/sops-v${SOPS_VERSION}.linux.$ARCH /usr/local/bin/sops

FROM node:16-bullseye-slim

# We need to set a home directory, since both Helm and NPM won't be able to write to /.
Expand All @@ -15,6 +21,7 @@ ENV HOME=/tmp/argocd-cdk8s-plugin/
RUN mkdir $HOME && chmod 770 $HOME
RUN apt-get update && apt-get install git tree ca-certificates -y --no-install-recommends && rm -rf /var/lib/apt/lists/*
COPY --from=helm /usr/local/bin/ /usr/local/bin/
COPY --from=sops /usr/local/bin/ /usr/local/bin/
COPY plugin.yaml /home/argocd/cmp-server/config/plugin.yaml
COPY scripts/* /

Expand Down

0 comments on commit c23e076

Please sign in to comment.