4 ms·
That's just the python interpreter inside Docker being called from outside Docker. That's basically a configuration to call: docker exec -i container_name pyth
by hu3 3y ago
That's just the python interpreter inside Docker being called from outside Docker. That's basically a configuration to call:
docker exec -i container_name python3 myfile.py
What VSCode does is much more powerful. It's as if you opened VSCode from inside the container. It works because VSCode installs a server inside the container so the world is now your container and you get full isolation, precise tooling and other goodies.
In my case the development Docker file has all dependencies devs need to work on the project. No need to fight with versions of npm, node, Python, Java, Go, nginx, Caddy, yada yada. Everything is configured in the Docker file. Everyone on the team gets a copy of the exact same environment.
We could even attach to a remote container running somewhere in "the cloud" if we wanted to.
- lopatin 3y agoI believe that IntelliJ can do this for remote servers. It installs an IntelliJ agent on the server and it’s like remote development, your real IDE becomes a lightweight client of it.
- andrewstuart 3y agoThis? https://www.jetbrains.com/help/idea/remote-development-a.html https://www.jetbrains.com/help/idea/remote-development-a.htm... JetBrains Gateway is a lightweight launcher that connects a remote server with your local machine, downloads necessary components on the backend, and opens your project in JetBrains Client.
- hu3 3y agoThat requires SSH daemon running inside Docker. Plus it looks broken from the comments on https://youtrack.jetbrains.com/issue/IDEA-226455 https://youtrack.jetbrains.com/issue/IDEA-226455 > Peter commented 21 Feb 2023 11:23 > Remote development is my biggest JB disappointment. After years of development, it still doesn't work -- is too slow, buggy, crashes all the time, with most features just missing. Seems like they can't do it. Last comment is from 16 May when they just closed the issue (and other related issues) with the same message. In VSCode these things just work. And it needs no SSH to attach to a Docker container.