🐳 Added support for Docker

This commit is contained in:
Stef 2020-07-22 04:27:01 -05:00
parent 2e0344928f
commit ab11b7fdf0
3 changed files with 29 additions and 1 deletions

3
.dockerignore Normal file
View file

@ -0,0 +1,3 @@
Dockerfile
.dockerignore
README.txt

20
Dockerfile Normal file
View file

@ -0,0 +1,20 @@
FROM alpine:3.12.0
#Installing all the dependencies
RUN apk add gcc libsodium-dev make autoconf build-base
WORKDIR /mkp224o
COPY . .
RUN ["./autogen.sh"]
RUN ["./configure"]
RUN ["make"]
RUN cp /mkp224o/mkp224o /usr/bin/
WORKDIR /root
CMD ["sh"]

View file

@ -24,7 +24,6 @@ or "--enable-donna" to configure script for faster key generation;
run `./configure --help` to see all available options.
Finally, `make` to start building (`gmake` in *BSD platforms).
USAGE:
Generator needs one or more filters to work.
@ -44,6 +43,12 @@ FAQ AND OTHER USEFUL INFO:
for onions starting with "neko" in this example; use `./mkp224o -d nekokeys neko` to
not litter current directory and put all discovered keys in directory named "nekokeys".
* How do I run with Docker?
- `docker build -f Dockerfile -t mkp224o .` to build the docker image
`docker run -it -v `pwd`:/root/ onion:latest sh`
Now run the `mkp224o neko` command and it will create key for onion starting with "neko"
in the current working directory.
* How do I make tor use generated keys?
- Copy key folder (though technically only hs_ed25519_secret_key is required)
to where you want your service keys to reside: