diff --git a/README.md b/README.md index 61d858f..2b93ee1 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,6 @@ Kapow! gives you: * A remote administration API * Opinion free shell integration - ## Kapow! Curses Kapow! can't help when: 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"] 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 . diff --git a/poc/examples/nmap/Dockerfile b/poc/examples/nmap/Dockerfile index 3a8cae1..51fa3be 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 + +RUN apk add nmap + COPY nmap.pow /tmp/ -RUN cd /tmp && pipenv install --system --deploy -ENTRYPOINT ["/usr/bin/kapow"] + CMD ["server", "/tmp/nmap.pow"]