From 833e055e71fdc975044bd4f1c299d0d289aff16e Mon Sep 17 00:00:00 2001 From: Tijme Gommers Date: Mon, 12 Apr 2021 10:53:00 +0200 Subject: [PATCH] Added support for Docker. --- Dockerfile | 12 ++++++++++++ README.md | 15 +++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6906810 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM python:3.7 + +WORKDIR /usr/src/SprayingToolkit +COPY . /usr/src/SprayingToolkit +ENV PATH="/usr/src/SprayingToolkit:${PATH}" + +RUN apt-get -y update + +RUN pip3 install -r requirements.txt + +WORKDIR /host +ENTRYPOINT ["atomizer.py"] \ No newline at end of file diff --git a/README.md b/README.md index b0dae1c..dea88ba 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,21 @@ sudo -H pip3 install -r requirements.txt Or use a Python virtual environment if you don't want to install the packages globally. +### Docker + +**Build** + +```bash +docker build -t sprayingtoolkit . +``` + +**Run (examples)** + +```bash +docker run -it --rm -v "${PWD}:/host" --entrypoint atomizer.py sprayingtoolkit --help +docker run -it --rm -v "${PWD}:/host" --entrypoint spindrift.py sprayingtoolkit --help +``` + ## Tool Overview ### Atomizer