3 if ! which arvbox >/dev/null ; then
4 export PATH=$PATH:$(readlink -f $(dirname $0)/../../tools/arvbox/bin)
12 while test -n "$1" ; do
32 echo "$0 [--no-reset-container] [--leave-running] [--no-docker-pull] [--config dev|localdemo]"
41 if test -z "$ARVBOX_CONTAINER" ; then
42 export ARVBOX_CONTAINER=cwltest
45 if test $reset_container = 1 ; then
54 . /usr/local/lib/arvbox/common.sh
56 cd /usr/src/arvados/sdk/cwl
58 pip_install \$(ls -r dist/arvados-cwl-runner-*.tar.gz | head -n1)
62 if ! test -d common-workflow-language ; then
63 git clone https://github.com/common-workflow-language/common-workflow-language.git
65 cd common-workflow-language
67 export ARVADOS_API_HOST=localhost:8000
68 export ARVADOS_API_HOST_INSECURE=1
69 export ARVADOS_API_TOKEN=\$(cat /var/lib/arvados/superuser_token)
71 if test $docker_pull = 1 ; then
72 arv-keepdocker --pull arvados/jobs
75 cat >/tmp/cwltest/arv-cwl-jobs <<EOF2
77 exec arvados-cwl-runner --api=jobs \\\$@
79 chmod +x /tmp/cwltest/arv-cwl-jobs
81 cat >/tmp/cwltest/arv-cwl-containers <<EOF2
83 exec arvados-cwl-runner --api=containers \\\$@
85 chmod +x /tmp/cwltest/arv-cwl-containers
93 if test $leave_running = 0 ; then