|
2 | 2 | "version": "0.2.0", |
3 | 3 | "configurations": [ |
4 | 4 | { |
5 | | - "name": "druid: serve", |
| 5 | + "name": "druid: daemon", |
6 | 6 | "type": "go", |
7 | 7 | "request": "launch", |
8 | 8 | "mode": "debug", |
9 | 9 | "console": "integratedTerminal", |
10 | 10 | "program": "${workspaceFolder}/apps/druid", |
| 11 | + "preLaunchTask": "k3d: build/import druid-cli pull image", |
| 12 | + "env": { |
| 13 | + "DRUID_K8S_PULL_IMAGE": "druid-cli:local" |
| 14 | + }, |
11 | 15 | "args": [ |
12 | | - "serve", |
| 16 | + "daemon", |
13 | 17 | "--socket", |
14 | 18 | "/tmp/druid-vscode-runtime.sock", |
| 19 | + "--listen", |
| 20 | + "127.0.0.1:8081", |
| 21 | + "--public-listen", |
| 22 | + "127.0.0.1:8082", |
| 23 | + "--worker-callback-listen", |
| 24 | + "0.0.0.0:8083", |
| 25 | + "--worker-callback-url", |
| 26 | + "http://host.docker.internal:8083", |
15 | 27 | "--state-dir", |
16 | 28 | "${workspaceFolder}/.runtime-state", |
17 | 29 | "--runtime", |
18 | | - "${input:runtimeBackend}" |
| 30 | + "${input:runtimeBackend}", |
| 31 | + "--k8s-kubeconfig", |
| 32 | + "${env:HOME}/.kube/config", |
| 33 | + "--k8s-namespace", |
| 34 | + "default" |
19 | 35 | ] |
20 | 36 | }, |
21 | 37 | { |
|
69 | 85 | ] |
70 | 86 | }, |
71 | 87 | { |
72 | | - "name": "druid-client: login", |
| 88 | + "name": "druid: login", |
73 | 89 | "type": "go", |
74 | 90 | "request": "launch", |
75 | 91 | "mode": "debug", |
76 | 92 | "console": "integratedTerminal", |
77 | | - "program": "${workspaceFolder}/apps/druid-client", |
| 93 | + "program": "${workspaceFolder}/apps/druid", |
78 | 94 | "cwd": "${workspaceFolder}", |
79 | 95 | "args": [ |
80 | 96 | "login", |
|
87 | 103 | ] |
88 | 104 | }, |
89 | 105 | { |
90 | | - "name": "druid-client: pull", |
| 106 | + "name": "druid: pull", |
91 | 107 | "type": "go", |
92 | 108 | "request": "launch", |
93 | 109 | "mode": "debug", |
94 | 110 | "console": "integratedTerminal", |
95 | | - "program": "${workspaceFolder}/apps/druid-client", |
| 111 | + "program": "${workspaceFolder}/apps/druid", |
96 | 112 | "args": [ |
97 | 113 | "pull", |
98 | 114 | "${input:artifactRef}", |
99 | 115 | "${workspaceFolder}/${input:scrollPath}" |
100 | 116 | ] |
101 | 117 | }, |
102 | 118 | { |
103 | | - "name": "druid-client: push", |
| 119 | + "name": "druid: push", |
104 | 120 | "type": "go", |
105 | 121 | "request": "launch", |
106 | 122 | "mode": "debug", |
107 | 123 | "console": "integratedTerminal", |
108 | | - "program": "${workspaceFolder}/apps/druid-client", |
| 124 | + "program": "${workspaceFolder}/apps/druid", |
109 | 125 | "args": [ |
110 | 126 | "push", |
111 | 127 | "${input:artifactRef}", |
112 | 128 | "${workspaceFolder}/${input:scrollPath}" |
113 | 129 | ] |
114 | 130 | }, |
115 | 131 | { |
116 | | - "name": "druid-client: push category", |
| 132 | + "name": "druid: push category", |
117 | 133 | "type": "go", |
118 | 134 | "request": "launch", |
119 | 135 | "mode": "debug", |
120 | 136 | "console": "integratedTerminal", |
121 | | - "program": "${workspaceFolder}/apps/druid-client", |
| 137 | + "program": "${workspaceFolder}/apps/druid", |
122 | 138 | "args": [ |
123 | 139 | "push", |
124 | 140 | "category", |
|
128 | 144 | ] |
129 | 145 | }, |
130 | 146 | { |
131 | | - "name": "druid-client: create", |
| 147 | + "name": "druid: create", |
132 | 148 | "type": "go", |
133 | 149 | "request": "launch", |
134 | 150 | "mode": "debug", |
135 | 151 | "console": "integratedTerminal", |
136 | | - "program": "${workspaceFolder}/apps/druid-client", |
| 152 | + "program": "${workspaceFolder}/apps/druid", |
137 | 153 | "cwd": "${workspaceFolder}", |
138 | 154 | "args": [ |
139 | 155 | "--daemon-socket", |
140 | 156 | "/tmp/druid-vscode-runtime.sock", |
141 | 157 | "create", |
142 | | - "--state-dir", |
143 | | - "${workspaceFolder}/.runtime-state", |
144 | 158 | "${input:artifactPath}" |
145 | 159 | ] |
146 | 160 | }, |
147 | 161 | { |
148 | | - "name": "druid-client: register", |
| 162 | + "name": "druid: dev", |
149 | 163 | "type": "go", |
150 | 164 | "request": "launch", |
151 | 165 | "mode": "debug", |
152 | 166 | "console": "integratedTerminal", |
153 | | - "program": "${workspaceFolder}/apps/druid-client", |
| 167 | + "program": "${workspaceFolder}/apps/druid", |
154 | 168 | "args": [ |
155 | 169 | "--daemon-socket", |
156 | 170 | "/tmp/druid-vscode-runtime.sock", |
157 | | - "register", |
158 | | - "${workspaceFolder}/${input:scrollPath}" |
| 171 | + "dev", |
| 172 | + "${input:scrollId}", |
| 173 | + "--watch", |
| 174 | + "data/private/dist", |
| 175 | + "--command", |
| 176 | + "${input:commandName}" |
159 | 177 | ] |
160 | 178 | }, |
161 | 179 | { |
162 | | - "name": "druid-client: list", |
| 180 | + "name": "druid: list", |
163 | 181 | "type": "go", |
164 | 182 | "request": "launch", |
165 | 183 | "mode": "debug", |
166 | 184 | "console": "integratedTerminal", |
167 | | - "program": "${workspaceFolder}/apps/druid-client", |
| 185 | + "program": "${workspaceFolder}/apps/druid", |
168 | 186 | "args": [ |
169 | 187 | "--daemon-socket", |
170 | 188 | "/tmp/druid-vscode-runtime.sock", |
171 | 189 | "list" |
172 | 190 | ] |
173 | 191 | }, |
174 | 192 | { |
175 | | - "name": "druid-client: describe", |
| 193 | + "name": "druid: describe", |
176 | 194 | "type": "go", |
177 | 195 | "request": "launch", |
178 | 196 | "mode": "debug", |
179 | 197 | "console": "integratedTerminal", |
180 | | - "program": "${workspaceFolder}/apps/druid-client", |
| 198 | + "program": "${workspaceFolder}/apps/druid", |
181 | 199 | "args": [ |
182 | 200 | "--daemon-socket", |
183 | 201 | "/tmp/druid-vscode-runtime.sock", |
|
186 | 204 | ] |
187 | 205 | }, |
188 | 206 | { |
189 | | - "name": "druid-client: ports", |
| 207 | + "name": "druid: ports", |
190 | 208 | "type": "go", |
191 | 209 | "request": "launch", |
192 | 210 | "mode": "debug", |
193 | 211 | "console": "integratedTerminal", |
194 | | - "program": "${workspaceFolder}/apps/druid-client", |
| 212 | + "program": "${workspaceFolder}/apps/druid", |
195 | 213 | "args": [ |
196 | 214 | "--daemon-socket", |
197 | 215 | "/tmp/druid-vscode-runtime.sock", |
|
200 | 218 | ] |
201 | 219 | }, |
202 | 220 | { |
203 | | - "name": "druid-client: run", |
| 221 | + "name": "druid: run", |
204 | 222 | "type": "go", |
205 | 223 | "request": "launch", |
206 | 224 | "mode": "debug", |
207 | 225 | "console": "integratedTerminal", |
208 | | - "program": "${workspaceFolder}/apps/druid-client", |
| 226 | + "program": "${workspaceFolder}/apps/druid", |
209 | 227 | "args": [ |
210 | 228 | "--daemon-socket", |
211 | 229 | "/tmp/druid-vscode-runtime.sock", |
|
215 | 233 | ] |
216 | 234 | }, |
217 | 235 | { |
218 | | - "name": "druid-client: delete", |
| 236 | + "name": "druid: delete", |
219 | 237 | "type": "go", |
220 | 238 | "request": "launch", |
221 | 239 | "mode": "debug", |
222 | 240 | "console": "integratedTerminal", |
223 | | - "program": "${workspaceFolder}/apps/druid-client", |
| 241 | + "program": "${workspaceFolder}/apps/druid", |
224 | 242 | "args": [ |
225 | 243 | "--daemon-socket", |
226 | 244 | "/tmp/druid-vscode-runtime.sock", |
|
229 | 247 | ] |
230 | 248 | }, |
231 | 249 | { |
232 | | - "name": "druid-client: attach", |
| 250 | + "name": "druid: attach", |
233 | 251 | "type": "go", |
234 | 252 | "request": "launch", |
235 | 253 | "mode": "debug", |
236 | 254 | "console": "integratedTerminal", |
237 | | - "program": "${workspaceFolder}/apps/druid-client", |
| 255 | + "program": "${workspaceFolder}/apps/druid", |
238 | 256 | "args": [ |
239 | 257 | "--daemon-socket", |
240 | 258 | "/tmp/druid-vscode-runtime.sock", |
|
251 | 269 | "console": "integratedTerminal", |
252 | 270 | "program": "${workspaceFolder}/apps/druid-coldstarter", |
253 | 271 | "args": [ |
254 | | - "--runtime-config", |
255 | | - "${workspaceFolder}/${input:scrollPath}/data/.druid/runtime.json", |
| 272 | + "--root", |
| 273 | + "${workspaceFolder}/${input:scrollPath}", |
256 | 274 | "--status-file", |
257 | 275 | "coldstart/status.json" |
258 | 276 | ] |
|
284 | 302 | "type": "pickString", |
285 | 303 | "description": "Runtime backend", |
286 | 304 | "options": [ |
| 305 | + "kubernetes", |
287 | 306 | "docker" |
288 | 307 | ], |
289 | | - "default": "docker" |
| 308 | + "default": "kubernetes" |
290 | 309 | }, |
291 | 310 | { |
292 | 311 | "id": "scrollPath", |
|
0 commit comments