X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a95f899d7ac84f29b3d019aa410d265bb40833e5..374a802e502d044973fd21ca68d2f6ab707bd770:/sdk/cwl/test_with_arvbox.sh diff --git a/sdk/cwl/test_with_arvbox.sh b/sdk/cwl/test_with_arvbox.sh index bee1938584..3b16bbcc20 100755 --- a/sdk/cwl/test_with_arvbox.sh +++ b/sdk/cwl/test_with_arvbox.sh @@ -1,5 +1,7 @@ #!/bin/sh +set -x + if ! which arvbox >/dev/null ; then export PATH=$PATH:$(readlink -f $(dirname $0)/../../tools/arvbox/bin) fi @@ -7,6 +9,8 @@ fi reset_container=1 leave_running=0 config=dev +docker_pull=1 +tag="" while test -n "$1" ; do arg="$1" @@ -23,11 +27,19 @@ while test -n "$1" ; do config=$2 shift ; shift ;; + --no-docker-pull) + docker_pull=0 + shift + ;; + --tag) + tag=$2 + shift ; shift + ;; -h|--help) - echo "$0 [--no-reset-container] [--leave-running] [--config dev|localdemo]" + echo "$0 [--no-reset-container] [--leave-running] [--no-docker-pull] [--config dev|localdemo] [--tag docker_tag]" exit ;; - -*) + *) break ;; esac @@ -41,7 +53,7 @@ if test $reset_container = 1 ; then arvbox reset -f fi -arvbox start $config +arvbox start $config $tag arvbox pipe </tmp/cwltest/arv-cwl-jobs </tmp/cwltest/arv-cwl-containers <