Skip to content

Commit 98e72ab

Browse files
author
Prince Rachit Sinha
committed
Update launch config for bob proxy
1 parent f0bf2e8 commit 98e72ab

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

components/image-builder-bob/.vscode/launch.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
{
22
"version": "0.2.0",
33
"configurations": [
4+
{
5+
"name": "bob proxy",
6+
"type": "go",
7+
"request": "launch",
8+
"mode": "debug",
9+
"program": "${workspaceFolder}/main.go",
10+
"args": ["proxy"],
11+
"envFile": "${workspaceFolder}/bob.env"
12+
},
413
{
514
"name": "Attach",
615
"type": "go",
716
"request": "attach",
817
"mode": "remote",
918
"remotePath": "",
10-
"port":2345,
19+
"port":2346,
1120
"host":"127.0.0.1",
1221
"showLog": true,
1322
"trace": "log",

components/image-builder-bob/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,11 @@ BOB_BASE_REF=localhost:5000/source:latest BOB_TARGET_REF=localhost:5000/target:8
3939
# debug using delve
4040
BOB_BASE_REF=localhost:5000/source:latest BOB_TARGET_REF=localhost:5000/target:83 sudo -E $(which dlv) --listen=:2345 --headless=true --api-version=2 exec $(which bob) build
4141
```
42+
43+
Running Proxy
44+
```
45+
You can run proxy using the `launch.json` shipped for this component. Please note that proxy will rely on you creating and configuring right environment values in an env file called `bob.env`.
46+
47+
To start proxy in debugging mode simply select `bob proxy` from the debugging menu of vs code.
48+
```
49+

0 commit comments

Comments
 (0)