#!/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) fi reset_container=1 leave_running=0 config=dev tag="latest" while test -n "$1" ; do arg="$1" case "$arg" in --no-reset-container) reset_container=0 shift ;; --leave-running) leave_running=1 shift ;; --config) config=$2 shift ; shift ;; --tag) tag=$2 shift ; shift ;; -h|--help) echo "$0 [--no-reset-container] [--leave-running] [--config dev|localdemo] [--tag docker_tag]" exit ;; *) break ;; esac done if test -z "$ARVBOX_CONTAINER" ; then export ARVBOX_CONTAINER=cwltest fi if test $reset_container = 1 ; then arvbox reset -f fi arvbox start $config $tag arvbox pipe </tmp/cwltest/arv-cwl-jobs </tmp/cwltest/arv-cwl-containers <