Bump loofah from 2.2.3 to 2.3.1 in /apps/workbench
[arvados.git] / sdk / cwl / tests / federation / arvbox-make-federation.cwl
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: Apache-2.0
4
5 cwlVersion: v1.0
6 class: Workflow
7 $namespaces:
8   arv: "http://arvados.org/cwl#"
9   cwltool: "http://commonwl.org/cwltool#"
10 requirements:
11   ScatterFeatureRequirement: {}
12   StepInputExpressionRequirement: {}
13   cwltool:LoadListingRequirement:
14     loadListing: no_listing
15   InlineJavascriptRequirement: {}
16 inputs:
17   containers:
18     type: string[]
19     default: [fedbox1, fedbox2, fedbox3]
20   arvbox_base: Directory
21   in_acr: string?
22   insecure:
23     type: boolean
24     default: true
25   arvbox:
26     type: File
27     default:
28       class: File
29       location: ../../../../tools/arvbox/bin/arvbox
30 outputs:
31   arvados_api_token:
32     type: string
33     outputSource: setup-user/test_user_token
34   arvados_api_hosts:
35     type: string[]
36     outputSource: start/container_host
37   arvados_cluster_ids:
38     type: string[]
39     outputSource: start/cluster_id
40   superuser_tokens:
41     type: string[]
42     outputSource: start/superuser_token
43   acr:
44     type: string?
45     outputSource: in_acr
46   arvado_api_host_insecure:
47     type: boolean
48     outputSource: insecure
49   arvbox_containers:
50     type: string[]
51     outputSource: containers
52   arvbox_bin:
53     type: File
54     outputSource: arvbox
55 steps:
56   mkdir:
57     in:
58       containers: containers
59       arvbox_base: arvbox_base
60     out: [arvbox_data]
61     run: arvbox/mkdir.cwl
62   start:
63     in:
64       container_name: containers
65       arvbox_data: mkdir/arvbox_data
66       arvbox_bin: arvbox
67     out: [cluster_id, container_host, arvbox_data_out, superuser_token]
68     scatter: [container_name, arvbox_data]
69     scatterMethod: dotproduct
70     run: arvbox/start.cwl
71   fed-config:
72     in:
73       container_name: containers
74       this_cluster_id: start/cluster_id
75       cluster_ids: start/cluster_id
76       cluster_hosts: start/container_host
77       arvbox_data: start/arvbox_data_out
78       arvbox_bin: arvbox
79     out: []
80     scatter: [container_name, this_cluster_id, arvbox_data]
81     scatterMethod: dotproduct
82     run: arvbox/fed-config.cwl
83   setup-user:
84     in:
85       container_host: {source: start/container_host, valueFrom: "$(self[0])"}
86       superuser_token: {source: start/superuser_token, valueFrom: "$(self[0])"}
87     out: [test_user_uuid, test_user_token]
88     run: arvbox/setup-user.cwl