Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set more threads in Docker? #94

Open
elch0laj opened this issue Aug 25, 2021 · 1 comment
Open

How to set more threads in Docker? #94

elch0laj opened this issue Aug 25, 2021 · 1 comment

Comments

@elch0laj
Copy link

Hello i setup the tool and look amazing.
Im trying to setup the docker with the --threads 3, i put 3 github tokens and inside docker-compose.yml i set this

entrypoint: ["/app/shhgit", "--threads 3 --live=http://shhgit-www/push"]

But when i compose up i get this error, any advice to set flags for the docker?

Attaching to shhgit.www, shhgit.app
shhgit.app    | flag provided but not defined: -threads 3
shhgit.app    | Usage of /app/shhgit:
shhgit.app    |   -clone-repository-timeout uint
shhgit.app    |         Maximum time it should take to clone a repository in seconds. Increase this if you have a slower connection (default 10)
shhgit.app    |   -config-path string
shhgit.app    |         Searches for config.yaml from given directory. If not set, tries to find if from shhgit binary's and current directory
shhgit.app    |   -csv-path string
shhgit.app    |         CSV file path to log found secrets to. Leave blank to disable
shhgit.app    |   -debug
shhgit.app    |         Print debugging information
shhgit.app    |   -entropy-threshold float
shhgit.app    |         Set to 0 to disable entropy checks (default 5)
shhgit.app    |   -live string
shhgit.app    |         Your shhgit live endpoint
shhgit.app    |   -local string
shhgit.app    |         Specify local directory (absolute path) which to scan. Scans only given directory recursively. No need to have GitHub tokens with local run.
shhgit.app    |   -maximum-file-size uint
shhgit.app    |         Maximum file size to process in KB (default 256)
shhgit.app    |   -maximum-repository-size uint
shhgit.app    |         Maximum repository size to process in KB (default 5120)
shhgit.app    |   -minimum-stars uint
shhgit.app    |         Only process repositories with this many stars. Default 0 will ignore star count
shhgit.app    |   -path-checks
shhgit.app    |         Set to false to disable checking of filepaths, i.e. just match regex patterns of file contents (default true)
shhgit.app    |   -process-gists
shhgit.app    |         Will watch and process Gists. Set to false to disable. (default true)
shhgit.app    |   -search-query string
shhgit.app    |         Specify a search string to ignore signatures and filter on files containing this string (regex compatible)
shhgit.app    |   -silent
shhgit.app    |         Suppress all output except for errors
shhgit.app    |   -temp-directory string
shhgit.app    |         Directory to process and store repositories/matches (default "/tmp/shhgit")
shhgit.app    |   -threads int
shhgit.app    |         Number of concurrent threads (default number of logical CPUs)
shhgit.app exited with code 2

Thanks!

@s1m0n-crypto
Copy link

"-thread=3"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants