Here’s a link on doing it with python
https://www.jetbrains.com/help/pycharm/using-docker-as-a-rem...
Here’s a link on doing it with python
https://www.jetbrains.com/help/pycharm/using-docker-as-a-rem...
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.
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.
Plus it looks broken from the comments on 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.
That's a hard fact.
Any organisation that can pay a salary or a contract rate, pay for a computer for the person to work on, pay for the hosting of their service, well they can also afford to pay for the tools that the developers need to do their job. And if they really can't, as I say, they should stop doing development because they are deeply unserious.
That's my most workplaces. After cut-throat technical recruitment process with complexity and data structures smartasses, I thought they must be great workplaces with the best tools. Then on the first day in the office "IDE?! no we have no budget for it, why don't you write code in the new message window of outlook?"