Created
November 30, 2019 15:48
-
-
Save mikaelvesavuori/ca5d41f132ac7ce00556bf816ff60eea to your computer and use it in GitHub Desktop.
Visual Studio Code in Google Cloud Shell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use Visual Studio Code in Google Cloud Shell | |
# As posted at: https://medium.com/google-cloud/how-to-run-visual-studio-code-in-google-cloud-shell-354d125d5748 | |
# Export version variable | |
export VERSION=`curl -s https://api.github.com/repos/cdr/code-server/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")'` | |
# Download | |
wget https://github.com/cdr/code-server/releases/download/$VERSION/code-server$VERSION-linux-x64.tar.gz | |
# Unzip | |
tar -xvzf code-server$VERSION-linux-x64.tar.gz | |
# Go to folder | |
cd code-server$VERSION-linux-x64 | |
# Start | |
./code-server --no-auth --port 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment