News for hackers. Stuff that matters.
Re:VSCode, Dev Containers and Docker by cpuguy83 on Thursday January 21, 2021 @11:02AM (#25860270)
I use vscode to connect to a a cloud vm. VSCode is surprisingly good at this. Client is local and connects to an vscode server over ssh.

Granted I work on Azure and the cost of the vm is not something I have to worry about.

Re:VSCode, Dev Containers and Docker by gingerlime on Thursday January 21, 2021 @11:48AM (#25860929)
We also use remote dev boxes, but can VSCode connect to a remote server and connect to remote docker containers?

For example, I don't have ruby installed on the remote dev box, but it is installed inside docker on the remote host. I also don't have ruby or docker running locally.

I think all the linting plugins either expect ruby to be available on the remote host, or inside docker, but not this combo... Is there something I'm missing? (disclaimer: only played a bit with VScode, I use vim on the remote box usually).

Re:VSCode, Dev Containers and Docker by brianm on Thursday January 21, 2021 @12:17PM (#25861326)
> can VSCode connect to a remote server and connect to remote docker containers?

Yes, it can. https://code.visualstudio.com/docs/remote/containers-advance... talks about setting it up.

Re:VSCode, Dev Containers and Docker by gingerlime on Thursday January 21, 2021 @01:34PM (#25862249)
Thank you! looks cool. Hope I’ll figure it out, considering I’m pretty clueless about VSCode
Re:VSCode, Dev Containers and Docker by cpuguy83 on Thursday January 21, 2021 @03:29PM (#25863800)
Yes. Vscode (server) is running on the remote machine. Extensions run on the remote as well.

A new terminal in vscode is a terminal on the remote.

Only the client GUI is local.

Re:VSCode, Dev Containers and Docker by gingerlime on Friday January 22, 2021 @06:17AM (#25870655)
Thank you. I managed to get it working... still I'm not sure about things like ruby-rubocop ... I can install it remotely, but not inside a remote docker container (where my ruby runs)... Any tips?
Re:VSCode, Dev Containers and Docker by pbalau on Thursday January 21, 2021 @09:32PM (#25867577)
Yes, if you can connect the docker cli to the remote host, then vscode can connect too.
Re:VSCode, Dev Containers and Docker by speedgoose on Thursday January 21, 2021 @11:08AM (#25860355)
The Azure Codespaces VMs were awfully slow on IOs. It was not a great experience at all.

If you want decent IOs, better than an old notebook, Azure is extremely expensive.

Re:VSCode, Dev Containers and Docker by TimTheTinker on Thursday January 21, 2021 @11:10AM (#25860391)
I do this, but with a Linux VM running in Parallels on my Mac. Uses about 1/10 the CPU that Docker on Mac uses for the containers I run.
Re:VSCode, Dev Containers and Docker by seabrookmx on Thursday January 21, 2021 @11:32AM (#25860697)
Same here, but with Hyper-V on Windows.

Originally I did this because of bad performance and bugs in WSL 1. I hear WSL 2 is better but I already have it all set up and it works great for me so I've just kept it.