Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/ws-proxy/telepresence.sh
2492 views
1
#!/bin/bash
2
3
if [ "$1" == "dbg-intp" ]; then
4
echo "starting delve"
5
dlv debug --listen=127.0.0.1:32991 --headless --api-version=2 github.com/gitpod-io/gitpod/ws-proxy -- run -v /tmp/c/config/config.json
6
exit $?
7
fi
8
if [ "$1" == "intp" ]; then
9
echo "starting process"
10
go run main.go run -v /tmp/c/config/config.json
11
exit $?
12
fi
13
14
if [ "$1" == "debug" ]; then
15
telepresence --mount /tmp/c --swap-deployment ws-proxy --method vpn-tcp --run "$0" dbg-intp
16
exit $?
17
fi
18
telepresence --mount /tmp/c --swap-deployment ws-proxy --method vpn-tcp --run "$0" intp
19