generated from Sage-Bionetworks-Challenges/model-to-data-challenge-workflow
-
Notifications
You must be signed in to change notification settings - Fork 2
/
start_service.cwl
47 lines (43 loc) · 1012 Bytes
/
start_service.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
#!/usr/bin/env cwl-runner
#
# Starts submission annotation service
#
cwlVersion: v1.0
class: CommandLineTool
baseCommand: python3
inputs:
- id: submissionid
type: int
- id: docker_repository
type: string
- id: docker_digest
type: string
- id: docker_registry
type: string
- id: docker_authentication
type: string
- id: status
type: boolean?
- id: docker_script
type: File
arguments:
- valueFrom: $(inputs.docker_script.path)
- valueFrom: $(inputs.submissionid)
prefix: -s
- valueFrom: $(inputs.docker_repository)
prefix: -p
- valueFrom: $(inputs.docker_digest)
prefix: -d
requirements:
- class: InitialWorkDirRequirement
listing:
- $(inputs.docker_script)
- entryname: .docker/config.json
entry: |
{"auths": {"$(inputs.docker_registry)": {"auth": "$(inputs.docker_authentication)"}}}
- class: InlineJavascriptRequirement
outputs:
finished:
type: boolean
outputBinding:
outputEval: $( true )