From cb6f6703290cb57e69ffd5adc30b6a3e71d650cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Fri, 4 May 2018 10:24:06 +0200 Subject: [PATCH] Implement support for optional arguments to docker run inside script --- hack/tfw.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hack/tfw.sh b/hack/tfw.sh index 4339b59..6d20e73 100755 --- a/hack/tfw.sh +++ b/hack/tfw.sh @@ -99,13 +99,14 @@ run_test() docker run --rm \ -p $TEST_PORT:$TEST_PORT \ ${mount_volumes} \ + ${@:-} \ -e AVATAO_SECRET=$AVATAO_SECRET $IMAGE_NAME } build_and_run_test() { build_test - run_test + run_test $@ } run_frontend() @@ -124,7 +125,7 @@ start_test() { trap 'exit' INT TERM trap 'kill 0' EXIT - run_frontend & build_and_run_test + run_frontend & build_and_run_test $@ wait } @@ -142,7 +143,7 @@ case ${1:-} in build_test_withfrontend ;; start) - start_test + start_test ${@:2} ;; *) echo "Usage: tfw.sh [start|buildtfw|build|buildwithfrontend|releasetfw]"