forked from unity-sds/unity-example-application
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstage_in.cwl
108 lines (108 loc) · 2.91 KB
/
stage_in.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#!/usr/bin/env cwl-runner
baseCommand:
- DOWNLOAD
class: CommandLineTool
cwlVersion: v1.2
inputs:
download_type:
type: string
downloading_keys:
default: data, metadata
type: string
downloading_roles:
default: data, metadata
type: string
edl_password:
default: /sps/processing/workflows/edl_password
type: string
edl_password_type:
default: PARAM_STORE
type: string
edl_username:
default: /sps/processing/workflows/edl_username
type: string
stac_json:
type:
- string
- File
unity_client_id:
type: string
unity_cognito:
default: https://cognito-idp.us-west-2.amazonaws.com
type: string
unity_password:
default: /sps/processing/workflows/unity_password
type: string
unity_ssl:
default: 'TRUE'
type: string
unity_stac_auth:
default: NONE
type: string
unity_type:
default: PARAM_STORE
type: string
unity_username:
default: /sps/processing/workflows/unity_username
type: string
outputs:
stage_in_collection_file:
outputBinding:
glob: stage-in-results.json
type: File
stage_in_download_dir:
outputBinding:
glob: .
type: Directory
requirements:
DockerRequirement:
dockerPull: ghcr.io/unity-sds/unity-data-services:9.0.0
NetworkAccess:
networkAccess: true
EnvVarRequirement:
envDef:
- envName: CLIENT_ID
envValue: $(inputs.unity_client_id)
- envName: COGNITO_URL
envValue: $(inputs.unity_cognito)
- envName: DOWNLOADING_KEYS
envValue: $(inputs.downloading_keys)
- envName: DOWNLOADING_ROLES
envValue: $(inputs.downloading_roles)
- envName: DOWNLOAD_DIR
envValue: $(runtime.outdir)
- envName: DOWNLOAD_RETRY_TIMES
envValue: '5'
- envName: DOWNLOAD_RETRY_WAIT_TIME
envValue: '30'
- envName: EDL_BASE_URL
envValue: https://urs.earthdata.nasa.gov/
- envName: EDL_PASSWORD
envValue: $(inputs.edl_password)
- envName: EDL_PASSWORD_TYPE
envValue: $(inputs.edl_password_type)
- envName: EDL_USERNAME
envValue: $(inputs.edl_username)
- envName: GRANULES_DOWNLOAD_TYPE
envValue: $(inputs.download_type)
- envName: LOG_LEVEL
envValue: '20'
- envName: OUTPUT_FILE
envValue: $(runtime.outdir)/stage-in-results.json
- envName: PARALLEL_COUNT
envValue: '-1'
- envName: PASSWORD
envValue: $(inputs.unity_password)
- envName: PASSWORD_TYPE
envValue: $(inputs.unity_type)
- envName: STAC_AUTH_TYPE
envValue: $(inputs.unity_stac_auth)
- envName: USERNAME
envValue: $(inputs.unity_username)
- envName: VERIFY_SSL
envValue: $(inputs.unity_ssl)
- envName: STAC_JSON
envValue: "${\n console.log(typeof inputs.stac_json);\n if (typeof inputs.stac_json\
\ === 'object'){\n return inputs.stac_json.path;\n }\n else{\n return\
\ inputs.stac_json;\n }\n}\n"
InlineJavascriptRequirement: {}