From f97d4a8753d0df65704dcaf46dbc30de9d8898b7 Mon Sep 17 00:00:00 2001 From: Rich Brown Date: Sun, 5 Jun 2022 07:57:33 -0400 Subject: Update Docker base to use golan 1.18.1 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index e96afa8..77a540b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ # Run with: docker run goresp -FROM golang:1.17.8-alpine3.15 +FROM golang:1.18.1-alpine3.15 RUN mkdir /goresponsiveness ADD . /goresponsiveness -- cgit v1.2.3 From 57d2b71770fd12e5c1e85cfe334f4a1e50b9725b Mon Sep 17 00:00:00 2001 From: Rich Brown Date: Sun, 5 Jun 2022 08:35:18 -0400 Subject: Update Dockerfile for golang 1.18.3 and alpine 3.16 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 77a540b..99571f5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ # Run with: docker run goresp -FROM golang:1.18.1-alpine3.15 +FROM golang:1.18.3-alpine3.16 RUN mkdir /goresponsiveness ADD . /goresponsiveness -- cgit v1.2.3 From caa7515fa0b59d2d1c654f9b17b4f1d76c34c561 Mon Sep 17 00:00:00 2001 From: Rich Brown Date: Tue, 7 Jun 2022 07:34:49 -0400 Subject: Add `--rm` option to remove the Docker container after running RPM Test. (Unused containers accumulate if you don't --rm.) --- Dockerfile | 2 +- README.md | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 99571f5..64f3c95 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/README.md b/README.md index 798cea4..32aa2c1 100644 --- a/README.md +++ b/README.md @@ -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`. -- cgit v1.2.3