mirror of
https://github.com/sherlock-project/sherlock
synced 2025-02-17 04:58:28 +00:00
Adding docker support
This commit is contained in:
parent
448f072e36
commit
b96da0b547
3 changed files with 27 additions and 0 deletions
4
.dockerignore
Normal file
4
.dockerignore
Normal file
|
@ -0,0 +1,4 @@
|
|||
.git/
|
||||
.vscode/
|
||||
*.txt
|
||||
!/requirements.txt
|
6
Dockerfile
Normal file
6
Dockerfile
Normal file
|
@ -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
README.md
17
README.md
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue