An open API service indexing awesome lists of open source software.

https://github.com/rakheshster/docker-sops

Docker Image for Mozilla's sops tool
https://github.com/rakheshster/docker-sops

arm gnupg sops

Last synced: about 2 months ago
JSON representation

Docker Image for Mozilla's sops tool

Awesome Lists containing this project

README

          

# docker-sops
![Build & Push to DockerHub](https://github.com/rakheshster/docker-sops/workflows/Docker%20Build%20&%20Push/badge.svg)
## What is this?
I wanted to try out [SOPS](https://github.com/mozilla/sops) on my Raspberry Pi and there was no ARM version available. Thought I'd Dockerize it. I have a bash function in my `.bash_profile` to then run the container.

## Bash function example
```bash
function docker-sops {
docker run -it --rm \
--name docker-sops \
-v $(pwd):/home -v $HOME/.gnupg:/root/.gnupg \
rakheshster/sops:latest $@ ;
}
```

This pulls the image from DockerHub, calls it "docker-sops" (the name doesn't matter), mounts the current directory as "/home" in the container (so sops can work on it), mounts the ".gnupg" directory in your home folder into the container (so sops & gnupg can access your keys), and runs the container with the arguments to the function passed to it. Simple!

I invoke this as `docker-sops `. I could have called the function `sops` but I decided to prefix it with `docker-` in case I install an ARM binary of sops later. You could call the function `sops` if you want.

## DockerHub

You can find it on DockerHub [here](https://hub.docker.com/repository/docker/rakheshster/sops).