diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | Dockerfile | 4 | ||||
| -rw-r--r-- | README.md | 17 |
3 files changed, 20 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1a990f8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +networkQuality
\ No newline at end of file @@ -4,9 +4,9 @@ # Build with: docker build -t goresp . -# Run with: docker run goresp +# Run with: docker run --rm goresp -FROM golang:1.17.8-alpine3.15 +FROM golang:1.18.3-alpine3.16 RUN mkdir /goresponsiveness ADD . /goresponsiveness @@ -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`. |
