https://linen.dev logo
ssh port forwarding is helpful for accessing code-...
# general
s
ssh port forwarding is helpful for accessing code-server (VS Code in a browser) and testing a running app, from a v2 workspace (in this case, docker-local, but it could be a Linux VM with Docker and a container) I installed code-server 4.4.0 (VS Code 1.66.2) into an image on DockerHub, and added that to the docker-local template and coder templates update... After building the workspace (coder create) 1. coder config-ssh 2. ssh port forward 8080 ssh -L 8080:localhost:8080 coder.mark-docker-ws -L 3000:localhost:3000 coder.mark-docker-ws 3. and start code-server with: /usr/lib/code-server/bin/code-server --host 0.0.0.0 --port 8080 --auth=none 4. I cloned a simple node app and started it on port 3000 5. opened VS Code (code-server) at http://localhost:8080 6. opened the node app at http://localhost:3000 Resources: Screenshot of Dockerfile installing code-server into the image code-server image I pushed to DockerHub (I change these frequently so use at your own risk) https://hub.docker.com/repository/docker/marktmilligan/code-server