This repository has been archived by the owner on Sep 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added gpg and gopass to argocdserver
- Loading branch information
1 parent
fc7f967
commit cf35797
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |