Free VS Code Workaround
Hey guys, I figure this may be interesting to a few folks so wanted to share.

New to ARM and finding things can be a little trickier than I expected, so when I was setting up a dev environment I wanted to keep things simple and have my code compiled and running in an x64 machine.

So long story short I ran up an always free remote VPS and installed a virtual IDE there I can get at through the browser which will then be accessible across any of the images I boot on the PBP Smile

Quick steps are:

1) Get a free VPS - currently Oracle will give anyone two free linux boxes (plus DB plus other stuff) forever, so I like this option ( although I'm sure other options are available.
2) SSH into the remote box and install docker | docker-compose
3) Setup an a record on your domain e.g. vs.*** points to server IP.
4) Here's the docker compose setup I use to run the container with SSL behind an NGINX reverse proxy.

version: '2'


   image: jwilder/nginx-proxy
   container_name: proxy
   restart: unless-stopped
     com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
     - /var/run/docker.sock:/tmp/docker.sock:ro
     - certs:/etc/nginx/certs:rw
     - vhost.d:/etc/nginx/vhost.d
     - html:/usr/share/nginx/html
     - ./uploadsize.conf:/etc/nginx/conf.d/uploadsize.conf:ro
     - "80:80"
     - "443:443"
     - "default"
     - "proxy-tier"

   image: jrcs/letsencrypt-nginx-proxy-companion
   container_name: letsencrypt
   restart: unless-stopped
     - /var/run/docker.sock:/var/run/docker.sock:ro
     - "proxy"
     - "proxy"
     - "default"
     - "proxy-tier"

   image: portainer/portainer
   container_name: portainer
   restart: always
     - ./portainer/:/data
     - /var/run/docker.sock:/var/run/docker.sock
     - "9000:9000"

   image: linuxserver/code-server
   container_name: code-server
   restart: unless-stopped
     - PUID=1000
     - PGID=1000
     - TZ=Australia/Perth
     - /codeserver/config:/config
     - 8443:8443



e' voila!

Ideally I was going to run the head melted vs code locally and then just ssh to the server as a remote host, but this currently isn't supported in the hed melted version as the feature is pre-release in VS code.... If anyone knows the workaround to that I'd be interested - as that feels like a cleaner approach!
Head melted works fine for me:
(01-23-2020, 07:53 AM)clover Wrote: Head melted works fine for me:

Can you use the remote-SSH extensions? These load but don't work on my Manjaro & head melted install?

Possibly Related Threads…
Thread Author Replies Views Last Post
  Instructions for Installing VS Code on Manjaro clover 6 8,072 06-04-2020, 09:37 PM
Last Post: pfeerick

Forum Jump:

Users browsing this thread: 1 Guest(s)