5 if ! which arvbox >/dev/null ; then
6 export PATH=$PATH:$(readlink -f $(dirname $0)/../../tools/arvbox/bin)
15 while test -n "$1" ; do
39 echo "$0 [--no-reset-container] [--leave-running] [--no-docker-pull] [--config dev|localdemo] [--tag docker_tag]"
48 if test -z "$ARVBOX_CONTAINER" ; then
49 export ARVBOX_CONTAINER=cwltest
52 if test $reset_container = 1 ; then
56 arvbox start $config $tag
61 . /usr/local/lib/arvbox/common.sh
63 cd /usr/src/arvados/sdk/cwl
65 pip_install \$(ls -r dist/arvados-cwl-runner-*.tar.gz | head -n1)
69 if ! test -d common-workflow-language ; then
70 git clone https://github.com/common-workflow-language/common-workflow-language.git
72 cd common-workflow-language
74 export ARVADOS_API_HOST=localhost:8000
75 export ARVADOS_API_HOST_INSECURE=1
76 export ARVADOS_API_TOKEN=\$(cat /var/lib/arvados/superuser_token)
78 if test $docker_pull = 1 ; then
79 arv-keepdocker --pull arvados/jobs $tag
82 cat >/tmp/cwltest/arv-cwl-jobs <<EOF2
84 exec arvados-cwl-runner --api=jobs \\\$@
86 chmod +x /tmp/cwltest/arv-cwl-jobs
88 cat >/tmp/cwltest/arv-cwl-containers <<EOF2
90 exec arvados-cwl-runner --api=containers \\\$@
92 chmod +x /tmp/cwltest/arv-cwl-containers
100 if test $leave_running = 0 ; then