Skip to content

Commit

Permalink
Adding docker support
Browse files Browse the repository at this point in the history
  • Loading branch information
cblument committed Dec 31, 2018
1 parent 448f072 commit b96da0b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.git/
.vscode/
*.txt
!/requirements.txt
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM python:3.7-alpine
RUN /sbin/apk add tor
COPY . /opt/sherlock/
RUN /usr/local/bin/pip install -r /opt/sherlock/requirements.txt

ENTRYPOINT ["python", "/opt/sherlock/sherlock.py"]
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,23 @@ optional arguments:
For example, run ```python3 sherlock.py user123```, and all of the accounts
found will be stored in a text file with the username (e.g ```user123.txt```).

## Docker Notes
If you have docker installed you can build an image and run this as a container.

```
docker build -t mysherlock-image .
```

Once the image is built sherlock can be invoked by running the following:

```
docker run --rm mysherlock-image user123
```

The ```--rm``` flag is optional. It removes the container filesystem after running so you do not have a bunch of leftover container filesystem cruft. See https://docs.docker.com/engine/reference/run/#clean-up---rm

One caveat is the text file that is created will only exist in the container so you will not be able to get at that.

## License
MIT License

Expand Down

0 comments on commit b96da0b

Please sign in to comment.