Skip to content

Commit d0cc8c8

Browse files
committed
chore: seamless debugging using Tilt
1 parent c8891be commit d0cc8c8

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

Tiltfile

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,23 @@
11
docker_build("snyk/kubernetes-monitor", ".",
22
live_update=[
33
fall_back_on(["package.json", "package-lock.json"]),
4-
sync('.', '/src'),
5-
]
4+
sync('.', '/root'),
5+
],
6+
entrypoint="bin/start-tilt"
67
)
78

89
k8s_yaml(local("helm template snyk-monitor | ./add-ns.py snyk-monitor"))
10+
k8s_resource('snyk-monitor', port_forwards='9229:9229')
911
watch_file("snyk-monitor")
12+
13+
14+
# vscode config:
15+
# {
16+
# "type": "node",
17+
# "request": "attach",
18+
# "name": "Attach to Remote",
19+
# "address": "127.0.0.1",
20+
# "port": 9229,
21+
# "localRoot": "${workspaceFolder}",
22+
# "remoteRoot": "/root"
23+
# }

bin/start-tilt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#! /bin/sh
2+
3+
npm install tslint typescript tsc-watch -g
4+
exec tsc-watch --project tsconfig.json --onSuccess 'node --inspect-brk=0.0.0.0:9229 .'

0 commit comments

Comments
 (0)