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

Add minimalistic docker image #17

Merged
merged 1 commit into from Apr 27, 2018
Merged

Add minimalistic docker image #17

merged 1 commit into from Apr 27, 2018

Conversation

pieterlange
Copy link
Contributor

Makes the project easy to run with some minimum level of isolation.

Alpine base image keeps things small & safe:

REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
snallygaster        latest              b41c47c92bfc        5 minutes ago       98.2MB

Usage:

$ docker run -ti --rm snallygaster /app/snallygaster --help
usage: snallygaster [-h] [-t TESTS] [--useragent USERAGENT] [--nowww]
                    [--nohttp] [--nohttps] [-i] [-n] [-j] [-d]
                    [hosts [hosts ...]]

positional arguments:
  hosts                 hostname to scan

optional arguments:
  -h, --help            show this help message and exit
  -t TESTS, --tests TESTS
                        comma-separated tests to run.
  --useragent USERAGENT 
                        User agent to send
  --nowww               skip scanning www.[host]
  --nohttp              Don't scan http
  --nohttps             Don't scan https
  -i, --info            Enable all info tests (no bugs/security
                        vulnerabilities)
  -n, --noisy           show noisy messages that indicate boring bugs, but no
                        security issue
  -j, --json            produce JSON output
  -d, --debug           show detailed debugging info

If you're happy with this it's easy to publish this on the docker hub or on quay.io

@hannob
Copy link
Owner

hannob commented Apr 27, 2018

This looks simple enough, but I have little knowledge about docker. But of course I'm happy to support that if it makes more people comfortable using snallygaster.

I'll merge it, but could you also add a short explanation of the docker image to the README as well and maybe if you publish it on docker hub or similar pages also put a link there?

@pieterlange
Copy link
Contributor Author

I could publish it on docker hub but it'd make more sense if you did as project owner :) Don't worry, it's really simple. (Create account on dockerhub/quay, link to repository) I'd recommend quay though - it's a little bit faster and you get vulnerability scans.

I'll add some docs on usage, which will be easier with an official image.

@hannob hannob merged commit d9f4116 into hannob:master Apr 27, 2018
@hannob
Copy link
Owner

hannob commented Apr 27, 2018

ok. Is there a reason not to publish it on both plattforms?

@pieterlange
Copy link
Contributor Author

I publish on both platforms myself so thats fine actually.

Thanks for the project & research!

@hannob
Copy link
Owner

hannob commented Apr 29, 2018

Does that look good?
https://hub.docker.com/r/hannob/snallygaster/

@hannob
Copy link
Owner

hannob commented Apr 29, 2018

quay seems to be only available if you pay, except for a free trial. So I guess we leave it with docker hub.

@pieterlange
Copy link
Contributor Author

Public repo's are free on quay and it looks like you'll have to manually trigger some builds on the docker hub (repo's are linked, but no builds yet)

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

Successfully merging this pull request may close these issues.

None yet

2 participants