From 95a7e0580a7af0ce468b75c03c11888f1b7f13b5 Mon Sep 17 00:00:00 2001 From: Stef Date: Thu, 6 Aug 2020 00:28:57 -0500 Subject: [PATCH 1/6] added docker support --- contrib/docker/.dockerignore | 4 ++++ contrib/docker/Dockerfile | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 contrib/docker/.dockerignore create mode 100644 contrib/docker/Dockerfile diff --git a/contrib/docker/.dockerignore b/contrib/docker/.dockerignore new file mode 100644 index 0000000..6b3d6ee --- /dev/null +++ b/contrib/docker/.dockerignore @@ -0,0 +1,4 @@ +Dockerfile +.dockerignore +README.txt +.git diff --git a/contrib/docker/Dockerfile b/contrib/docker/Dockerfile new file mode 100644 index 0000000..e4a3427 --- /dev/null +++ b/contrib/docker/Dockerfile @@ -0,0 +1,16 @@ +FROM alpine:3.12.0 + +#Installing all the dependencies +RUN apk add --no-cache gcc libsodium-dev make autoconf build-base + +WORKDIR /mkp224o + +COPY . /mkp224o/ + +RUN ./autogen.sh \ + && ./configure \ + && make \ + && cp /mkp224o/mkp224o /usr/local/bin/ + +WORKDIR /root +ENTRYPOINT ["mkp224o"] From d392ec642c68cf9d63cc7c7038b081dc79c27e0f Mon Sep 17 00:00:00 2001 From: Stefin Date: Sun, 9 Aug 2020 09:25:37 -0500 Subject: [PATCH 2/6] Update contrib/docker/Dockerfile Co-authored-by: Sandro --- contrib/docker/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/docker/Dockerfile b/contrib/docker/Dockerfile index e4a3427..0b3222d 100644 --- a/contrib/docker/Dockerfile +++ b/contrib/docker/Dockerfile @@ -13,4 +13,5 @@ RUN ./autogen.sh \ && cp /mkp224o/mkp224o /usr/local/bin/ WORKDIR /root -ENTRYPOINT ["mkp224o"] +VOLUME /root/data +ENTRYPOINT ["mkp224o", "-d", "/root/data"] From 5c996018652d0341b9a81ed1fa363f1adcae1410 Mon Sep 17 00:00:00 2001 From: Stefin Date: Tue, 18 Aug 2020 14:40:12 -0500 Subject: [PATCH 3/6] Update Dockerfile --- contrib/docker/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/contrib/docker/Dockerfile b/contrib/docker/Dockerfile index 0b3222d..60ab50b 100644 --- a/contrib/docker/Dockerfile +++ b/contrib/docker/Dockerfile @@ -12,6 +12,8 @@ RUN ./autogen.sh \ && make \ && cp /mkp224o/mkp224o /usr/local/bin/ -WORKDIR /root VOLUME /root/data -ENTRYPOINT ["mkp224o", "-d", "/root/data"] + +WORKDIR /root/data + +ENTRYPOINT ["mkp224o"] From 1b6cb117b4edd6e0aac8841761d18c9b6dae131d Mon Sep 17 00:00:00 2001 From: Stefin Date: Tue, 18 Aug 2020 14:41:11 -0500 Subject: [PATCH 4/6] Update .dockerignore --- contrib/docker/.dockerignore | 3 --- 1 file changed, 3 deletions(-) diff --git a/contrib/docker/.dockerignore b/contrib/docker/.dockerignore index 6b3d6ee..6b8710a 100644 --- a/contrib/docker/.dockerignore +++ b/contrib/docker/.dockerignore @@ -1,4 +1 @@ -Dockerfile -.dockerignore -README.txt .git From 3025c59eabd384acc64e785b8afe1b688745b9ae Mon Sep 17 00:00:00 2001 From: Stefin Date: Wed, 2 Sep 2020 05:33:04 -0500 Subject: [PATCH 5/6] Added README.md for contrib/docker --- contrib/docker/README.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 contrib/docker/README.md diff --git a/contrib/docker/README.md b/contrib/docker/README.md new file mode 100644 index 0000000..1154fe9 --- /dev/null +++ b/contrib/docker/README.md @@ -0,0 +1,7 @@ +# Usage + +## Building Image Locally +`docker build -f contrib/docker/Dockerfile -t mkp224o .` + +## Running Image Locally +`docker run -it -v $(pwd):/root/data mkp224o neko` From b94137e72d5d820672fb0b1625c864bd00deb4ce Mon Sep 17 00:00:00 2001 From: Stefin Date: Wed, 2 Sep 2020 05:34:47 -0500 Subject: [PATCH 6/6] Added maintainer for Dockerfile --- contrib/docker/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/docker/Dockerfile b/contrib/docker/Dockerfile index 60ab50b..97aaac3 100644 --- a/contrib/docker/Dockerfile +++ b/contrib/docker/Dockerfile @@ -1,5 +1,7 @@ FROM alpine:3.12.0 +LABEL maintainer="sstefin@bk.ru" + #Installing all the dependencies RUN apk add --no-cache gcc libsodium-dev make autoconf build-base