5 if ! which arvbox >/dev/null ; then
6 export PATH=$PATH:$(readlink -f $(dirname $0)/../../tools/arvbox/bin)
14 while test -n "$1" ; do
34 echo "$0 [--no-reset-container] [--leave-running] [--config dev|localdemo] [--tag docker_tag]"
43 if test -z "$ARVBOX_CONTAINER" ; then
44 export ARVBOX_CONTAINER=cwltest
47 if test $reset_container = 1 ; then
51 arvbox start $config $tag
56 . /usr/local/lib/arvbox/common.sh
58 if test $config = dev ; then
59 cd /usr/src/arvados/sdk/cwl
61 pip_install \$(ls -r dist/arvados-cwl-runner-*.tar.gz | head -n1)
66 if ! test -d common-workflow-language ; then
67 git clone https://github.com/common-workflow-language/common-workflow-language.git
69 cd common-workflow-language
71 export ARVADOS_API_HOST=localhost:8000
72 export ARVADOS_API_HOST_INSECURE=1
73 export ARVADOS_API_TOKEN=\$(cat /var/lib/arvados/superuser_token)
75 cat >/tmp/cwltest/arv-cwl-jobs <<EOF2
77 exec arvados-cwl-runner --api=jobs --compute-checksum \\\$@
79 chmod +x /tmp/cwltest/arv-cwl-jobs
81 cat >/tmp/cwltest/arv-cwl-containers <<EOF2
83 exec arvados-cwl-runner --api=containers --compute-checksum \\\$@
85 chmod +x /tmp/cwltest/arv-cwl-containers
93 if test $leave_running = 0 ; then