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)
68 if ! test -d common-workflow-language ; then
69 git clone https://github.com/common-workflow-language/common-workflow-language.git
71 cd common-workflow-language
73 export ARVADOS_API_HOST=localhost:8000
74 export ARVADOS_API_HOST_INSECURE=1
75 export ARVADOS_API_TOKEN=\$(cat /var/lib/arvados/superuser_token)
77 arv-keepdocker --pull arvados/jobs latest
79 cat >/tmp/cwltest/arv-cwl-jobs <<EOF2
81 exec arvados-cwl-runner --api=jobs --compute-checksum \\\$@
83 chmod +x /tmp/cwltest/arv-cwl-jobs
85 cat >/tmp/cwltest/arv-cwl-containers <<EOF2
87 exec arvados-cwl-runner --api=containers --compute-checksum \\\$@
89 chmod +x /tmp/cwltest/arv-cwl-containers
97 if test $leave_running = 0 ; then