forked from unity-sds/unity-example-application
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstage_out.cwl
64 lines (64 loc) · 1.63 KB
/
stage_out.cwl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/env cwl-runner
baseCommand:
- UPLOAD
class: CommandLineTool
cwlVersion: v1.2
inputs:
aws_access_key_id:
default: ''
type: string
aws_region:
default: us-west-2
type: string
aws_secret_access_key:
default: ''
type: string
aws_session_token:
default: ''
type: string
collection_id:
default: ''
type: string
output_dir:
type: Directory
result_path_prefix:
default: ''
type: string
staging_bucket:
default: ''
type: string
outputs:
failed_features:
outputBinding:
glob: $(runtime.outdir)/failed_features.json
type: File
stage_out_results:
outputBinding:
glob: $(runtime.outdir)/stage-out-results.json
type: File
successful_features:
outputBinding:
glob: $(runtime.outdir)/successful_features.json
type: File
requirements:
DockerRequirement:
dockerPull: ghcr.io/unity-sds/unity-data-services:7.12.2
EnvVarRequirement:
envDef:
AWS_ACCESS_KEY_ID: $(inputs.aws_access_key_id)
AWS_REGION: $(inputs.aws_region)
AWS_SECRET_ACCESS_KEY: $(inputs.aws_secret_access_key)
AWS_SESSION_TOKEN: $(inputs.aws_session_token)
CATALOG_FILE: $(inputs.output_dir.path)/catalog.json
COLLECTION_ID: $(inputs.collection_id)
LOG_LEVEL: '20'
OUTPUT_DIRECTORY: $(runtime.outdir)
OUTPUT_FILE: $(runtime.outdir)/stage-out-results.json
PARALLEL_COUNT: '-1'
RESULT_PATH_PREFIX: $(inputs.result_path_prefix)
STAGING_BUCKET: $(inputs.staging_bucket)
InitialWorkDirRequirement:
listing:
- entry: $(inputs.output_dir)
entryname: /tmp/outputs
stdout: stage-out-results.json