Here’s a link on doing it with python
https://www.jetbrains.com/help/pycharm/using-docker-as-a-rem...
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?"
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 where 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.
Because last I checked I couldn't and was a blocker for my team.
And with VSCode I can attach to both local and remote environments using Remote Development plugin by Microsoft (https://marketplace.visualstudio.com/items?itemName=ms-vscod...).
Yes most things are plugins. But they are high quality and maintained by the likes of Google, Microsoft, Docker, Shopify, Vue team, etc.
I like Docker development containers because they contain all the tools and configuration, down to the precise dependency and tooling versions.
Not only the onboarding is easier but we get less surprises by small differences in environments.