Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.

Added support for Docker. #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down