Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

Commit

Permalink
added gpg and gopass to argocdserver
Browse files Browse the repository at this point in the history
  • Loading branch information
thesephirot committed Jan 13, 2020
1 parent fc7f967 commit cf35797
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# patch argocd repo server to be able to decrypt secrets
FROM argoproj/argocd:latest

# Switch to root for the ability to perform install
USER root
ARG GOPASS_VERSION="1.8.6"
# Install tools needed for your repo-server to retrieve & decrypt secrets, render manifests
# (e.g. curl, awscli, gpg, sops)
RUN apt-get update && \
apt-get install -y \
wget \
gpg &&\
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
wget https://github.com/gopasspw/gopass/releases/download/v$GOPASS_VERSION/gopass-$GOPASS_VERSION-linux-amd64.tar.gz &&\
tar xf ./gopass-$GOPASS_VERSION-linux-amd64.tar.gz &&\
mv ./gopass-$GOPASS_VERSION-linux-amd64/gopass /usr/local/bin &&\
rm -rf ./gopass-$GOPASS_VERSION-linux-amd64* &&\
chmod +x /usr/local/bin/gopass

# Switch back to non-root user
USER argocd

0 comments on commit cf35797

Please sign in to comment.