1 #!/usr/bin/env cwl-runner
7 - id: arvados_api_hosts
11 - id: superuser_tokens
15 - default: arv-federation-migrate
20 outputSource: main_2/report3
23 InlineJavascriptRequirement: {}
24 MultipleInputFeatureRequirement: {}
25 ScatterFeatureRequirement: {}
26 StepInputExpressionRequirement: {}
27 SubworkflowFeatureRequirement: {}
32 source: arvados_api_hosts
36 location: create_users.py
38 source: superuser_tokens
44 - $(inputs.create_users)
46 class: CommandLineTool
49 - id: arvados_api_hosts
53 - id: superuser_tokens
62 outputEval: $(inputs.arvados_api_hosts)
67 InitialWorkDirRequirement:
71 "arvados_api_hosts": $(inputs.arvados_api_hosts),
72 "superuser_tokens": $(inputs.superuser_tokens)
75 InlineJavascriptRequirement: {}
81 source: arvados_api_hosts
85 valueFrom: '$(inputs.arvados_api_hosts[0])'
87 source: superuser_tokens
89 valueFrom: '$(inputs.superuser_tokens[0])'
103 - id: arvados_api_hosts
107 - id: superuser_tokens
119 outputSource: main_2_embed_1/report
122 outputSource: main_2_embed_2/report2
125 outputSource: main_2_embed_3/report3
128 outputSource: main_2_embed_4/r
131 - class: EnvVarRequirement
133 ARVADOS_API_HOST: $(inputs.host)
134 ARVADOS_API_HOST_INSECURE: '1'
135 ARVADOS_API_TOKEN: $(inputs.token)
149 - $(inputs.fed_migrate)
152 class: CommandLineTool
153 id: main_2_embed_1_embed
167 InlineJavascriptRequirement: {}
173 source: main_2_embed_1/report
182 - 's/,(case[1-8])2?,/,\1,/g'
183 class: CommandLineTool
184 id: main_2_embed_2_embed
198 InlineJavascriptRequirement: {}
199 stdin: $(inputs.report.path)
208 source: main_2_embed_2/report2
215 - $(inputs.fed_migrate)
218 class: CommandLineTool
219 id: main_2_embed_3_embed
232 outputEval: $(inputs.report2)
235 InlineJavascriptRequirement: {}
239 source: arvados_api_hosts
247 source: main_2_embed_3/report3
249 source: superuser_tokens
259 class: CommandLineTool
260 id: main_2_embed_4_embed
268 - id: arvados_api_hosts
272 - id: superuser_tokens
281 outputEval: $(inputs.report3)
284 InitialWorkDirRequirement:
288 "arvados_api_hosts": $(inputs.arvados_api_hosts),
289 "superuser_tokens": $(inputs.superuser_tokens)
292 InlineJavascriptRequirement: {}
296 - /var/lib/arvados-arvbox/superuser_token
297 class: CommandLineTool
304 - id: superuser_token
306 glob: superuser_token.txt
308 outputEval: '$(self[0].contents.trim())'
313 ARVBOX_CONTAINER: $(inputs.container)
314 InlineJavascriptRequirement: {}
315 stdout: superuser_token.txt
319 - id: arvados_api_hosts
323 - id: arvados_cluster_ids
327 - id: superuser_tokens
331 - id: arvbox_containers
335 - default: arv-federation-migrate
345 outputSource: main_2/supertok
350 outputSource: run_test_3/report3
353 InlineJavascriptRequirement: {}
354 MultipleInputFeatureRequirement: {}
355 ScatterFeatureRequirement: {}
356 StepInputExpressionRequirement: {}
357 SubworkflowFeatureRequirement: {}
362 source: arvados_cluster_ids
366 class: ExpressionTool
367 expression: '${return {''logincluster'': (inputs.arvados_cluster_ids[0])};}'
369 - id: arvados_cluster_ids
381 source: arvados_cluster_ids
383 source: arvbox_containers
385 source: arvados_api_hosts
387 source: main_1/logincluster
410 outputSource: superuser_tok_2/superuser_token
413 InlineJavascriptRequirement: {}
431 class: CommandLineTool
432 id: main_2_embed_1_embed
445 outputEval: $(inputs.container)
448 InitialWorkDirRequirement:
453 export ARVBOX_CONTAINER="$(inputs.container)"
455 $(inputs.arvbox_bin.path) pipe <<EOF
461 git checkout -f $(inputs.refspec)
465 chown arvbox:arvbox -R .
470 $(inputs.arvbox_bin.path) hotreset
473 while ! curl --fail --insecure --silent
474 https://$(inputs.host)/discovery/v1/apis/arvados/v1/rest
475 >/dev/null ; do sleep 3 ; done
478 ARVADOS_VIRTUAL_MACHINE_UUID=\$($(inputs.arvbox_bin.path)
479 cat /var/lib/arvados-arvbox/vm-uuid)
481 ARVADOS_API_TOKEN=\$($(inputs.arvbox_bin.path) cat
482 /var/lib/arvados-arvbox/superuser_token)
484 while ! curl --fail --insecure --silent -H
485 "Authorization: Bearer $ARVADOS_API_TOKEN"
486 https://$(inputs.host)/arvados/v1/virtual_machines/$ARVADOS_VIRTUAL_MACHINE_UUID
487 >/dev/null ; do sleep 3 ; done
490 InlineJavascriptRequirement: {}
491 - id: superuser_tok_2
496 source: main_2_embed_1/d
499 run: '#superuser_tok'
504 scatterMethod: dotproduct
508 source: arvados_api_hosts
512 source: main_2/supertok