Development Docker containers attachment #28702
a-babarytskyi
started this conversation in
Ideas From VSCode
Replies: 2 comments 4 replies
-
|
@a-babarytskyi i got zed working with devpod and it was pretty seamless. devpod will spin up your devcontainer and automatically create an ssh connection by default. then you can just connect to it through zed. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The main premise: being able to attach to docker container (later also K8s pods would be good). VSCode installs server on remote hosts and containers, so would be nice to have similar functionality in zed as well.
Why it mattaers for me?
I am doing currently mostly web development. In our place we have a bunch of home made apps with unified developemnt environment setup. Environment is set as follows:
A docker compose with at least 4 containers, sometimes 6:
Project files are mapped into containers accordingly: all files of frontend are mapped into frontend container and same goes for backend -> backend container. Each has their own VSCode config inside with debugger setup, color schema fot easier navigation between editor windows etc. I attach VS code to containers and change files from inside containers, run debugger or other commands. We keep window with the whole project directory open as well for git.
As files are mapped into project, after changes are saved in container I can git commit from the whole project window.
Pluses of the setup:
We have docker files for frontend and backend that setup environment for dev as similar as possible to production, and we don't need to jump between node/python versions, create venvs etc., makes it all consistent and reverse proxy with self-generated makecerts results in having proper https://localhost connection.
There exists a topic here, sort of similar: #28432 . Zed currently allows SSH attachment, but setting up ssh just to work properly with containers looks abit overkill, since VS code manages to do it without need for SSH.
Would be nice to have also GUI for docker, but that is not really necessary.
I would also add, that this is the main stopper for me to switch to zed completely. I can live without certain extensions and funky animals jumping in mu screen, but dev containers are a musthave 😅
Beta Was this translation helpful? Give feedback.
All reactions