Skip to content

Instantly share code, notes, and snippets.

@ghuntley
Created October 21, 2021 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ghuntley/7cb89a8e9c9616a1915ce038739a0132 to your computer and use it in GitHub Desktop.
Save ghuntley/7cb89a8e9c9616a1915ce038739a0132 to your computer and use it in GitHub Desktop.
name: openvscode-server
summary: Run VS Code on a remote machine through a modern web browser from anywhere
description: |
Run upstream VS Code on a remote machine with access through a modern web
browser from any device, anywhere.
license: MIT
base: core20
confinement: strict
grade: stable
version: '1.61.0'
architectures:
- build-on: amd64
layout:
/usr/bin/openvscode-server:
symlink: $SNAP/server.sh
parts:
openvscode-server:
plugin: dump
stage-packages:
- git
source: https://github.com/gitpod-io/openvscode-server/releases/download/openvscode-server-v$SNAPCRAFT_PROJECT_VERSION/openvscode-server-v$SNAPCRAFT_PROJECT_VERSION-linux-x64.tar.gz
override-build: |
ln -s server.sh openvscode-server
snapcraftctl build
apps:
openvscode-server:
command: openvscode-server
environment:
LANG: LC_ALL C.UTF-8
EDITOR: code
VISUAL: code
GIT_EDITOR: "code --wait"
OPENVSCODE_SERVER_ROOT: $SNAP
plugs:
- home
- removable-media
- mount-observe
- network
- network-bind
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment