Skip to content

Latest commit

History

History
95 lines (76 loc) 路 2.96 KB

install.md

File metadata and controls

95 lines (76 loc) 路 2.96 KB



Home 聽聽聽|聽聽聽 Installation 聽聽聽|聽聽聽 Usage 聽聽聽|聽聽聽 Docker 聽聽聽|聽聽聽 Contributing

Alternative install methods

  1. Python package
    1. Build from source
  2. Docker Container
    1. via Docker Hub (one off)
    2. via Docker Hub (compose)
    3. Local image with Dockerfile

Python PyPI - Version

# pipx is recommended, but pip may suffice if pipx is unavailable
pipx install sherlock-project

Build python package from source (useful for contributors)

# pipx is recommended, but pip may suffice if pipx is unavailable
git clone https://github.com/sherlock-project/sherlock.git
cd sherlock
pipx install .

Docker Docker Image Version

Note

Sherlock doesn't yet have context detection. It's recommended that Docker containers be ran with option -o /opt/sherlock/results/{user123}.txt (replace {user123}) when an output file is desired at the mounted volume (as seen in the compose).

This has no effect on stdout, which functions as expected out of the box.

# One-off searches
docker run --rm -t sherlock/sherlock user123

# If you need to save the output file... (modify as needed)
# Output file will land in ${pwd}/results
docker run --rm -t -v "$PWD/results:/opt/sherlock/results" sherlock/sherlock -o /opt/sherlock/results/text.txt user123
# At any time, you may update the image via this command
docker pull sherlock/sherlock

Using compose

version: "3"
services:
  sherlock:
    container_name: sherlock
    image: sherlock/sherlock
    volumes:
      - ./sherlock/:/opt/sherlock/results/
docker compose run sherlock user123

Build image from source (useful for contributors)

# Assumes ${pwd} is repository root
docker build -t sherlock .
docker run --rm -t sherlock user123