|
1 |
| -# skeleton-docker 💀🐳 # |
| 1 | +# vdp-scanner-docker 🔍📄 # |
2 | 2 |
|
3 |
| -[](https://github.com/cisagov/skeleton-docker/actions) |
4 |
| -[](https://lgtm.com/projects/g/cisagov/skeleton-docker/alerts/) |
5 |
| -[](https://lgtm.com/projects/g/cisagov/skeleton-docker/context:python) |
| 3 | +[](https://github.com/cisagov/vdp-scanner-docker/actions) |
| 4 | +[](https://lgtm.com/projects/g/cisagov/vdp-scanner-docker/alerts/) |
| 5 | +[](https://lgtm.com/projects/g/cisagov/vdp-scanner-docker/context:python) |
6 | 6 |
|
7 | 7 | ## Docker Image ##
|
8 | 8 |
|
9 |
| -[](https://hub.docker.com/r/cisagov/example) |
10 |
| -[](https://hub.docker.com/r/cisagov/example) |
11 |
| -[](https://hub.docker.com/r/cisagov/skeleton-docker/tags) |
| 9 | +[](https://hub.docker.com/r/cisagov/vdp-scanner) |
| 10 | +[](https://hub.docker.com/r/cisagov/vdp-scanner) |
| 11 | +[](https://hub.docker.com/r/cisagov/vdp-scanner/tags) |
12 | 12 |
|
13 |
| -This is a docker skeleton project that can be used to quickly get a |
14 |
| -new [cisagov](https://github.com/cisagov) GitHub docker project |
15 |
| -started. This skeleton project contains [licensing |
16 |
| -information](LICENSE), as well as [pre-commit hooks](https://pre-commit.com) |
17 |
| -and [GitHub Actions](https://github.com/features/actions) configurations |
18 |
| -appropriate for docker containers and the major languages that we use. |
| 13 | +This is a Docker project to scan either the |
| 14 | +[GSA current Federal .gov domain list](https://github.com/GSA/data/blob/master/dotgov-domains/current-federal.csv) |
| 15 | +or a given CSV in the same format with the |
| 16 | +[cisagov/hash-http-content](https://github.com/cisagov/hash-http-content) |
| 17 | +Python library. Then it will output CSVs with agency and domain level results. |
19 | 18 |
|
20 | 19 | ## Usage ##
|
21 | 20 |
|
22 | 21 | ### Install ###
|
23 | 22 |
|
24 |
| -Pull `cisagov/example` from the Docker repository: |
| 23 | +Pull `cisagov/vdp-scanner` from the Docker repository: |
25 | 24 |
|
26 |
| - docker pull cisagov/example |
| 25 | +```console |
| 26 | +docker pull cisagov/vdp-scanner |
| 27 | +``` |
27 | 28 |
|
28 |
| -Or build `cisagov/example` from source: |
| 29 | +Or build `cisagov/vdp-scanner` from source: |
29 | 30 |
|
30 |
| - git clone https://github.com/cisagov/skeleton-docker.git |
31 |
| - cd skeleton-docker |
32 |
| - docker-compose build --build-arg VERSION=0.0.1 |
| 31 | +```console |
| 32 | +git clone https://github.com/cisagov/vdp-scanner-docker.git |
| 33 | +cd vdp-scanner-docker |
| 34 | +docker-compose build |
| 35 | +``` |
33 | 36 |
|
34 | 37 | ### Run ###
|
35 | 38 |
|
36 |
| - docker-compose run --rm example |
| 39 | +This Docker image needs a bind mount to get the output from the script to the |
| 40 | +host. |
37 | 41 |
|
38 |
| -## Ports ## |
| 42 | +Using `docker run` |
39 | 43 |
|
40 |
| -This container exposes the following ports: |
| 44 | +```console |
| 45 | +docker run --mount type=bind,source=$(pwd),target=/task/host_mount --rm cisagov/vdp-scanner |
| 46 | +``` |
41 | 47 |
|
42 |
| -| Port | Protocol | Service | |
43 |
| -|-------|----------|----------| |
44 |
| -| 8080 | TCP | http | |
| 48 | +or if you have cloned the repository, you can use the included |
| 49 | +`docker-compose.yml` |
45 | 50 |
|
46 |
| -## Environment Variables ## |
47 |
| - |
48 |
| -| Variable | Default Value | Purpose | |
49 |
| -|---------------|-------------------------------|--------------| |
50 |
| -| ECHO_MESSAGE | `Hello World from Dockerfile` | Text to echo | |
51 |
| - |
52 |
| -## Secrets ## |
53 |
| - |
54 |
| -| Filename | Purpose | |
55 |
| -|---------------|----------------------| |
56 |
| -| quote.txt | Secret text to echo | |
57 |
| - |
58 |
| -## Volumes ## |
59 |
| - |
60 |
| -| Mount point | Purpose | |
61 |
| -|-------------|----------------| |
62 |
| -| /var/log | logging output | |
63 |
| - |
64 |
| -## New Repositories from a Skeleton ## |
65 |
| - |
66 |
| -Please see our [Project Setup guide](https://github.com/cisagov/development-guide/tree/develop/project_setup) |
67 |
| -for step-by-step instructions on how to start a new repository from |
68 |
| -a skeleton. This will save you time and effort when configuring a |
69 |
| -new repository! |
| 51 | +```console |
| 52 | +docker-compose up |
| 53 | +``` |
70 | 54 |
|
71 | 55 | ## Contributing ##
|
72 | 56 |
|
|
0 commit comments