From b0e640716fcc67a7cbbb78d054a1cb3f3dfd3769 Mon Sep 17 00:00:00 2001 From: pancho horrillo Date: Tue, 18 Jun 2019 11:08:37 +0200 Subject: [PATCH 1/6] README.md: style fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: César Gallego Rodríguez --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9afe6a1..c542ec7 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ When Kapow! is your best ally: # What is Kapow! -Kapow! is an adapter between the world of Pure UNIX® Shell and an HTTP service. +Kapow! is an adapter between the mighty UNIX® Shell and an HTTP service. Some tasks are more convenient in the shell, like cloud interactions, or some administrative tools. On the other hand, some tasks are more convenient as a From 16145da7a5274e073318fc5c8f25ade62cddac55 Mon Sep 17 00:00:00 2001 From: pancho horrillo Date: Tue, 18 Jun 2019 15:29:01 +0200 Subject: [PATCH 2/6] README.md: fix style for clarity --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c542ec7..369942d 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ On a simple schematics you can understand where Kapow! lives: Kapow! gives you: - * A very simple way of APIfy any shell executable + * A very simple way turning any shell script into an API * A remote administration API * Opinion free shell integration From 1c7b2c5e96504aaf8e948e1f4eb88968d5f70ac5 Mon Sep 17 00:00:00 2001 From: pancho horrillo Date: Tue, 18 Jun 2019 15:49:57 +0200 Subject: [PATCH 3/6] poc/Dockerfile: tidy it a little bit --- poc/Dockerfile | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/poc/Dockerfile b/poc/Dockerfile index d0d2249..79a15b5 100644 --- a/poc/Dockerfile +++ b/poc/Dockerfile @@ -1,7 +1,20 @@ FROM python:3.7-alpine -RUN apk update && apk add bash curl coreutils file -RUN pip install pipenv + COPY Pipfile Pipfile.lock /tmp/ -RUN cd /tmp && pipenv install --system --deploy + COPY bin/* /usr/bin/ + +WORKDIR /tmp + +RUN apk upgrade --update-cache; \ + apk add \ + bash \ + curl \ + coreutils \ + file; \ + \ + pip install pipenv; \ + \ + pipenv install --system --deploy; + ENTRYPOINT ["/usr/bin/kapow"] From 04715abbe19a35d2962f229dcc48d8e71bc58790 Mon Sep 17 00:00:00 2001 From: pancho horrillo Date: Tue, 18 Jun 2019 15:50:24 +0200 Subject: [PATCH 4/6] poc/examples/nmap/Dockerfile: tidy it a little bit --- poc/examples/nmap/Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/poc/examples/nmap/Dockerfile b/poc/examples/nmap/Dockerfile index 3a8cae1..4b62641 100644 --- a/poc/examples/nmap/Dockerfile +++ b/poc/examples/nmap/Dockerfile @@ -1,6 +1,7 @@ -FROM bbva/kapow:0.1 -RUN apk update && apk add nmap +FROM bbva/kapow:0.2 + +RUN apk add nmap + COPY nmap.pow /tmp/ -RUN cd /tmp && pipenv install --system --deploy -ENTRYPOINT ["/usr/bin/kapow"] + CMD ["server", "/tmp/nmap.pow"] From 4244ceba240d51dff50397d702d1790459772373 Mon Sep 17 00:00:00 2001 From: pancho horrillo Date: Wed, 19 Jun 2019 11:48:57 +0200 Subject: [PATCH 5/6] poc/examples/nmap/Dockerfile: revert version bump in base image --- poc/examples/nmap/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poc/examples/nmap/Dockerfile b/poc/examples/nmap/Dockerfile index 4b62641..51fa3be 100644 --- a/poc/examples/nmap/Dockerfile +++ b/poc/examples/nmap/Dockerfile @@ -1,4 +1,4 @@ -FROM bbva/kapow:0.2 +FROM bbva/kapow:0.1 RUN apk add nmap From 9b474d0d235b835cfc4bb4684d1b37c4659ca328 Mon Sep 17 00:00:00 2001 From: pancho horrillo Date: Thu, 20 Jun 2019 10:04:51 +0200 Subject: [PATCH 6/6] poc: add script for generating the docker image --- poc/buildme | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 poc/buildme diff --git a/poc/buildme b/poc/buildme new file mode 100755 index 0000000..c01ee09 --- /dev/null +++ b/poc/buildme @@ -0,0 +1,3 @@ +#!/bin/sh + +docker build -t bbva/kapow:0.1 .