-
Notifications
You must be signed in to change notification settings - Fork 1
/
whalesay-cwlexec.cwl
57 lines (49 loc) · 1.23 KB
/
whalesay-cwlexec.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
#!/usr/bin/env cwlexec -w "$PWD/cwlexec" --exec-config lsf.json whalesay-cwlexec.cwl whalesay.yaml
cwlVersion: v1.0
# CWLexec does not automatically convert a remote Docker image into a Singularity image. Therefore
# get the image with `singularity pull --name docker_whalesay.sif docker://docker/whalesay`
class: Workflow
requirements:
SubworkflowFeatureRequirement: {}
hints:
DockerRequirement:
dockerPull: docker_whalesay.sif
inputs:
message:
type: string
outputs:
ungulateSaid:
label: Ungulate words
type: File
outputSource: say/words
steps:
say:
in:
message: message
out:
[words]
run:
class: CommandLineTool
requirements:
- class: ResourceRequirement
coresMin: 1
coresMax: 1
ramMin: 50M
ramMax: 50M
inputs:
message:
type: string
inputBinding:
position: 1
# If there is not application profile:
# baseCommand:
# - "source /etc/profile;"
# - "singularity"
# - "run"
# - "docker://docker/whalesay:latest"
# - "/usr/local/bin/cowsay"
baseCommand:
- "/usr/local/bin/cowsay"
outputs:
words:
type: stdout