sladkoff / docker-gpg-sops

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docker-sops-gpg

This is a simple docker image with SOPS and GPG pre-installed. You can use this to mount GPG keys into a container and run SOPS.

Example usage

Sample bash script ~/sops-gpg.sh:

#!/bin/bash

command=$@

directoryname=$(pwd)

docker run -it -v ~/.gnupg:/root/.gnupg \
    -v $directoryname:/root/secrets sldk/gpg-sops:latest $command

Run with:

# Go to a directory that contains a .sops.yaml
cd ~/my-working-directory

~/sops-gpg.sh -d ./relative-secret-directory/secret.yaml

About


Languages

Language:Dockerfile 100.0%