18874: Merge commit '6f8dcb2b13f3058db656908fb26b09e23b527f08' into 18874-merge-wb2
[arvados.git] / sdk / cwl / tests / federation / framework / run-acr.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: CommandLineTool
7 inputs:
8   acr:
9     type: string?
10     default: arvados-cwl-runner
11     inputBinding:
12       position: 1
13   arvados_api_host: string
14   arvados_api_token: string
15   arvado_api_host_insecure:
16     type: boolean
17     default: false
18   runner_cluster:
19     type: string?
20     inputBinding:
21       prefix: --submit-runner-cluster
22       position: 2
23   wf:
24     type: File
25     inputBinding:
26       position: 3
27   obj: Any
28 requirements:
29   InitialWorkDirRequirement:
30     listing:
31       - entryname: input.json
32         entry: $(JSON.stringify(inputs.obj))
33   EnvVarRequirement:
34     envDef:
35       ARVADOS_API_HOST: $(inputs.arvados_api_host)
36       ARVADOS_API_TOKEN: $(inputs.arvados_api_token)
37       ARVADOS_API_HOST_INSECURE: $(""+inputs.arvado_api_host_insecure)
38   InlineJavascriptRequirement: {}
39 outputs:
40   out:
41     type: Any
42     outputBinding:
43       glob: output.json
44       loadContents: true
45       #outputEval: $(JSON.parse(self[0].contents))
46       outputEval: $(self[0].contents)
47 stdout: output.json
48 arguments:
49   - valueFrom: --disable-reuse
50     position: 2
51   - valueFrom: --always-submit-runner
52     position: 2
53   - valueFrom: --api=containers
54     position: 2
55   - valueFrom: input.json
56     position: 4