19675: Merge branch '19675-instance-types-panel' from arvados-workbench2.git
[arvados.git] / sdk / cwl / tests / federation / framework / prepare.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 requirements:
8   InitialWorkDirRequirement:
9     listing:
10       - entryname: input.json
11         entry: $(JSON.stringify(inputs.obj))
12       - entryname: config.json
13         entry: |-
14           ${
15           return JSON.stringify({
16             arvados_cluster_ids: inputs.arvados_cluster_ids,
17             scrub_images: [inputs.scrub_image],
18             scrub_collections: inputs.scrub_collections
19           });
20           }
21   EnvVarRequirement:
22     envDef:
23       ARVADOS_API_HOST: $(inputs.arvados_api_host)
24       ARVADOS_API_TOKEN: $(inputs.arvados_api_token)
25       ARVADOS_API_HOST_INSECURE: $(""+inputs.arvado_api_host_insecure)
26   InlineJavascriptRequirement: {}
27 hints:
28   DockerRequirement:
29     dockerPull: arvados/jobs
30 inputs:
31   arvados_api_token: string
32   arvado_api_host_insecure: boolean
33   arvados_api_host: string
34   arvados_cluster_ids: string[]
35   wf: File
36   obj: Any
37   scrub_image: string
38   scrub_collections: string[]
39   preparescript:
40     type: File
41     default:
42       class: File
43       location: prepare.py
44     inputBinding:
45       position: 1
46 outputs:
47   done:
48     type: boolean
49     outputBinding:
50       outputEval: $(true)
51 baseCommand: python