X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a95f899d7ac84f29b3d019aa410d265bb40833e5..1416b0952adc0bfee85e15d9c86a51c32fcfd003:/sdk/cwl/test_with_arvbox.sh diff --git a/sdk/cwl/test_with_arvbox.sh b/sdk/cwl/test_with_arvbox.sh index bee1938584..f924adbbd6 100755 --- a/sdk/cwl/test_with_arvbox.sh +++ b/sdk/cwl/test_with_arvbox.sh @@ -1,4 +1,9 @@ #!/bin/sh +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + +set -x if ! which arvbox >/dev/null ; then export PATH=$PATH:$(readlink -f $(dirname $0)/../../tools/arvbox/bin) @@ -7,6 +12,7 @@ fi reset_container=1 leave_running=0 config=dev +tag="latest" while test -n "$1" ; do arg="$1" @@ -23,11 +29,15 @@ while test -n "$1" ; do config=$2 shift ; 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] [--config dev|localdemo] [--tag docker_tag]" exit ;; - -*) + *) break ;; esac @@ -38,19 +48,25 @@ if test -z "$ARVBOX_CONTAINER" ; then fi if test $reset_container = 1 ; then + arvbox stop + docker rm $ARVBOX_CONTAINER arvbox reset -f fi -arvbox start $config +arvbox start $config $tag arvbox pipe </tmp/cwltest/arv-cwl-jobs </tmp/cwltest/arv-cwl-containers <