-
Notifications
You must be signed in to change notification settings - Fork 0
/
RuntimeOptionsTest.wdl
65 lines (53 loc) · 1.48 KB
/
RuntimeOptionsTest.wdl
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
version 1.0
workflow RuntimeOptionsTestWorkflow {
input {
String image
String memory
Int cpu
String disks
}
call RuntimeOptionsTestTask {
input:
image = image,
memory = memory,
cpu = cpu,
disks = disks
}
output {
File runtime_details = RuntimeOptionsTestTask.runtime_details
}
}
task RuntimeOptionsTestTask {
input {
String image
String memory
Int cpu
String disks
}
command <<<
echo " ==== /usr/bin/env ====" > runtime_details.txt 2>&1
/usr/bin/env >> runtime_details.txt
echo "" >> runtime_details.txt
echo " ==== uname -a ====" >> runtime_details.txt 2>&1
uname -a >> runtime_details.txt
echo "" >> runtime_details.txt
echo " ==== df -H ====" >> runtime_details.txt 2>&1
df -H >> runtime_details.txt
echo "" >> runtime_details.txt
echo " ==== /proc/cpuinfo ====" >> runtime_details.txt 2>&1
cat /proc/cpuinfo >> runtime_details.txt
echo "" >> runtime_details.txt
echo " ==== /proc/meminfo ====" >> runtime_details.txt 2>&1
cat /proc/meminfo >> runtime_details.txt
echo "" >> runtime_details.txt
>>>
runtime {
docker: "~{image}"
memory: "~{memory}"
cpu: cpu
disks: "~{disks}"
}
output {
File runtime_details = "runtime_details.txt"
}
}