-
Notifications
You must be signed in to change notification settings - Fork 2
/
pipeline.json
39 lines (39 loc) · 1.1 KB
/
pipeline.json
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
{
"Name": "fruitstand",
"Stages": [
{
"Name": "input",
"Image": "ubuntu",
"Cmd": [
"sh", "-c",
"cp /data/* /walrus/input/"
],
"Volumes": ["data:/data"],
"Cache": true
},
{
"Name": "filter",
"Image": "ubuntu",
"Cmd": [
"sh", "-c",
"for fruit in apple orange banana; do grep $fruit /walrus/input/set1.txt | awk '{print $2}' >> /walrus/filter/$fruit; done"
],
"Inputs" : [
"input"
]
},
{
"Name": "sum",
"Image": "ubuntu",
"Cmd": [
"sh", "-c",
"for fruit in apple orange banana; do { cat /walrus/filter/$fruit || echo 0; cat /walrus/filter/$fruit; } | awk '{s+=$1} END {print s}' > /walrus/sum/$fruit; done"
],
"Inputs" : [
"filter"
]
}
],
"Version": "",
"Comment": "Fruit stand example pipeline from Pachyderm"
}