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
- Host: GitHub
- URL: https://github.com/rakheshster/docker-sops
- Owner: rakheshster
- Created: 2020-12-01T18:48:17.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-31T11:02:27.000Z (over 3 years ago)
- Last Synced: 2025-02-16T13:05:03.828Z (over 1 year ago)
- Topics: arm, gnupg, sops
- Language: Shell
- Homepage: https://hub.docker.com/repository/docker/rakheshster/sops
- Size: 36.1 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-sops

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