diff options
| author | Rich Brown <[email protected]> | 2022-06-07 07:34:49 -0400 |
|---|---|---|
| committer | Rich Brown <[email protected]> | 2022-06-07 07:34:49 -0400 |
| commit | caa7515fa0b59d2d1c654f9b17b4f1d76c34c561 (patch) | |
| tree | 8d62e15a9a25a64abd73af70b098a0d5d51b6a27 | |
| parent | 57d2b71770fd12e5c1e85cfe334f4a1e50b9725b (diff) | |
Add `--rm` option to remove the Docker container after running RPM Test.
(Unused containers accumulate if you don't --rm.)
| -rw-r--r-- | Dockerfile | 2 | ||||
| -rw-r--r-- | README.md | 17 |
2 files changed, 18 insertions, 1 deletions
@@ -4,7 +4,7 @@ # Build with: docker build -t goresp . -# Run with: docker run goresp +# Run with: docker run --rm goresp FROM golang:1.18.3-alpine3.16 @@ -86,6 +86,23 @@ You can also test against the Apple infrastructure using: $ ./networkQuality --config mensura.cdn-apple.com --port 443 --path /api/v1/gm/config ``` +## Dockerfile + +This repo contains a Dockerfile for running the binary so you +don't have to install any languages or build tools. +To use it: + +``` +# build the container +docker build -t goresp . + +# run the RPM test +docker run --rm goresp + +# run the RPM test with full options, testing against Apple infrastructure +docker run --rm goresp --config mensura.cdn-apple.com --port 443 --path /api/v1/gm/config --debug +``` + ## Contributing We *love* contributions. Before submitting a patch, format your code with `go fmt`. |
