From 475a6cd5cd15c35bcd0379c64e60aa0aba3071cd Mon Sep 17 00:00:00 2001 From: Martin Abbrent <643697+maab@users.noreply.github.com> Date: Fri, 11 Nov 2022 09:49:01 +0100 Subject: [PATCH] Fix docker commands in readme: `run-test-in-docker.sh` requires bash but is called with sh. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ecd461b..dc552e9 100644 --- a/README.md +++ b/README.md @@ -1601,20 +1601,20 @@ and image with all required backend. To use it: ``` docker build -t mosquitto-go-auth.test -f Dockerfile.runtest . -docker run --rm -ti mosquitto-go-auth.test sh ./run-test-in-docker.sh +docker run --rm -ti mosquitto-go-auth.test ./run-test-in-docker.sh ``` Or using local source (avoid the need to rebuild image): ``` -docker run -v $(pwd):/app --rm -ti mosquitto-go-auth.test sh ./run-test-in-docker.sh +docker run -v $(pwd):/app --rm -ti mosquitto-go-auth.test ./run-test-in-docker.sh ``` You may even specify the command to run after backends are started, which allow to run only some tests or even get a shell inside the containers: ``` -docker run -v $(pwd):/app --rm -ti mosquitto-go-auth.test sh ./run-test-in-docker.sh make test-backends +docker run -v $(pwd):/app --rm -ti mosquitto-go-auth.test ./run-test-in-docker.sh make test-backends -docker run -v $(pwd):/app --rm -ti mosquitto-go-auth.test sh ./run-test-in-docker.sh bash +docker run -v $(pwd):/app --rm -ti mosquitto-go-auth.test ./run-test-in-docker.sh bash ``` ### License