Editing in VSCode from geodesic #52
-
Hi guys, Silly question probably - is there a way to launch a vscode editor from within a geodesic shell? So I can basically do 'kubectl edit configmap' or something, and instead of vim it launches a vscode on my host? I know I can attach vscode to the geodesic container, but it never worked for me. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey there, That said, the way that geodesic runs requires:
Rather than enumerate how that's done, I'd recommend just running geodesic normally, then using 'docker inspect' in a separate terminal to get all the env vars and the workspace volume mount. Sadly, I don't have a script for it, but it's likely pretty easy to take the json output of Let me know how this goes, and I can test it on my side when I have more time. |
Beta Was this translation helpful? Give feedback.
Hey there,
While it can be a bit tricky to get started, it's possible to do this.
You'll need to basically use the 'remote' mode in VS Code. This article has the gist: https://code.visualstudio.com/docs/devcontainers/containers
That said, the way that geodesic runs requires:
Rather than enumerate how that's done, I'd recommend just running geodesic normally, then using 'docker inspect' in a separate terminal to get all the env vars and the workspace volume mount. Sadly, I don't have a script for it, but it's likely pretty easy to take the json output of
docker inspect
and ask something like chatgpt to generate a de…