From f4a61100f1d99701bb778d46cc3060ab996d3dd3 Mon Sep 17 00:00:00 2001 From: James McLean Date: Mon, 16 Dec 2019 13:33:28 +1030 Subject: [PATCH 1/2] Added Dockerfile to allow container usage, and added basic instructions to the readme --- Dockerfile | 8 ++++++++ README.md | 14 ++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5daf650 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM python:3.8.0-alpine3.10 + +RUN mkdir /spraying && \ + apk add cmake make libtool gcc musl-dev libffi-dev g++ libxml2 libxml2-dev libxslt libxslt-dev openssl openssl-dev + +COPY . /spraying + +RUN pip install -r /spraying/requirements.txt diff --git a/README.md b/README.md index ba9e40d..606076e 100644 --- a/README.md +++ b/README.md @@ -161,3 +161,17 @@ Reads names from `names.txt`, `--target` dynamically grabs the internal domain n ```bash ./spindrift.py names.txt --target contoso.com ``` + +## Docker + +Build the Docker container + +```bash +docker build -t sprayingtoolkit +``` + +Run the docker container with a specific tool + +```bash +docker run -t sprayingtoolkt /spraying/ +``` From b9103a33013281a673654ad33805254c0aaf3136 Mon Sep 17 00:00:00 2001 From: "vortex (James McLean)" <859420+vortexau@users.noreply.github.com> Date: Mon, 16 Dec 2019 13:35:54 +1030 Subject: [PATCH 2/2] Corrected minor typo in docker build instructions. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 606076e..83cc9e2 100644 --- a/README.md +++ b/README.md @@ -167,7 +167,7 @@ Reads names from `names.txt`, `--target` dynamically grabs the internal domain n Build the Docker container ```bash -docker build -t sprayingtoolkit +docker build -t sprayingtoolkit . ``` Run the docker container with a specific tool