From ab11b7fdf0d31fc34a3c3bb8bc99888f221520cc Mon Sep 17 00:00:00 2001 From: Stef Date: Wed, 22 Jul 2020 04:27:01 -0500 Subject: [PATCH] :whale: Added support for Docker --- .dockerignore | 3 +++ Dockerfile | 20 ++++++++++++++++++++ README.txt | 7 ++++++- 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..0f55f57 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +Dockerfile +.dockerignore +README.txt diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c07ca42 --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/README.txt b/README.txt index 196dbdc..cedb430 100644 --- a/README.txt +++ b/README.txt @@ -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: