wlanboy

tutorials and ruby scripts

Read my tutorials

Read my gists

Gist

Gist: run-vscode-server

#see https://github.com/cdr/code-server
#docker run -it -p 9000:8080 -v "/githubgolang:/home/coder/project" codercom/code-server
docker run --name coder -d -p 9000:8080 --restart unless-stopped -v "/githubgolang:/home/coder/project" codercom/code-server --auth none --disable-telemetry

#vscode terminal
cd /home/coder/project && mkdir go && mkdir gowork
wget https://dl.google.com/go/go1.14.1.linux-amd64.tar.gz
tar -xvf go1.14.1.linux-amd64.tar.gz
export PATH=$PATH:/home/coder/project/go/bin:/home/coder/project/apache-maven-3.6.3/bin:/home/coder/project/jdk-11.0.6+10/bin
export GOPATH=/home/coder/project/gowork
export MAVEN_HOME=/home/coder/project/apache-maven-3.6.3
export JAVA_HOME=/home/coder/project/jdk-11.0.6+10

apt-get install build-essential
go get -u github.com/go-delve/delve/cmd/dlv

#vscode settings go plugin
{
    "go.goroot": "/home/coder/project/go",
    "go.gopath": "/home/coder/project/gowork"
}