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.
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