forked from apache/openserverless-admin-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtasks.json
More file actions
48 lines (48 loc) · 1.78 KB
/
tasks.json
File metadata and controls
48 lines (48 loc) · 1.78 KB
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
{
"version": "2.0.0",
"tasks": [
{
"label": "Start Port Forwards",
"type": "shell",
"command": "${workspaceFolder}/.vscode/start-port-forwards.sh",
"isBackground": true,
"problemMatcher": {
"pattern": {
"regexp": "^Port forwards started: (.*)$",
"message": 1
},
"background": {
"activeOnStart": true,
"beginsPattern": "^.*$",
"endsPattern": "^Port forwards started:.*$"
}
},
"presentation": {
"echo": false,
"reveal": "never",
"focus": false,
"panel": "shared",
"showReuseMessage": false,
"clear": false
}
},
{
"label": "Stop Port Forwards",
"type": "shell",
"command": "test -f /tmp/pf-registry.pid && kill $(cat /tmp/pf-registry.pid) 2>/dev/null; test -f /tmp/pf-couchdb.pid && kill $(cat /tmp/pf-couchdb.pid) 2>/dev/null; rm -f /tmp/pf-registry.pid /tmp/pf-registry.log /tmp/pf-couchdb.pid /tmp/pf-couchdb.log; pkill -f 'kubectl port-forward -n nuvolaris registry-0' 2>/dev/null; pkill -f 'kubectl -n nuvolaris port-forward couchdb-0' 2>/dev/null; echo 'Port forwards stopped'; exit 0",
"presentation": {
"echo": true,
"reveal": "silent",
"focus": false,
"panel": "dedicated",
"showReuseMessage": false
},
"options": {
"shell": {
"executable": "/bin/bash",
"args": ["-c"]
}
}
}
]
}