Giter Site home page Giter Site logo

gitpod-io / openvscode-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from microsoft/vscode

4.9K 45.0 425.0 894.73 MB

Run upstream VS Code on a remote machine with access through a modern web browser from any device, anywhere.

Home Page: https://www.gitpod.io/

License: MIT License

JavaScript 1.40% TypeScript 96.38% Batchfile 0.03% Shell 0.14% CSS 1.38% HTML 0.57% Java 0.01% Clojure 0.01% CoffeeScript 0.01% C 0.01% C++ 0.01% F# 0.01% Go 0.01% Groovy 0.01% Lua 0.01% Makefile 0.01% Objective-C 0.01% Perl 0.01% PHP 0.01% PowerShell 0.08%
vscode remote ide

openvscode-server's Issues

sudo is not installed

I’m using :latest

We should make it easier for people to mutate the docker image/install software when the server is running.

Error Previewing Extensions - Service Workers are not enabled. Webviews will not work. (macOS)

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: v1.60.2 | v1.61.0
  • OS Version: Ubuntu | Docker
  • Client OS: macOS

Steps to Reproduce:
I start either the docker container, or run the OpenVSCode-Server from the folder and I get an error saying "Error: Service workers are not enabled. Webviews will not work. Try disabling private/incognito mode.

  1. I have tried Edge on macOS as well as Safari and the issue persists.
  2. I cleared the cache on client browsers
  3. Rebooted the host machine

Any thoughts would be helpful!

Love the project.

Allow the app to be installed as a PWA

The app already includes a manifest.json - but it's lacking some details. Most notably:

  • It has no Service Worker included, so Chrome etc. says "no"
  • the app lacks any proper icons (although this also applies to favicons) - maybe some should be added :)

[Guides] Create Guide For Azure VM

Hey, Would you be comfortable if I create a quick guide for running the Instance on Azure VMs? I do work with Azure a lot and maybe it would help people. Please let me know! Thanks.

Building images with preinstalled extensions

I'd like to build custom docker images based on this project with a number of extensions preinstalled during the image build process, e.g. for reproducible, versioned throwaway dev setups. It doesn't seem to be possible to do this using code --install-extension, as that crashes with Missing VSCODE_IPC_HOOK_CLI.

Does not work on OpenShift due to root permissions

The image does not work out of the box on RedHat OpenShift Container Platform due to the root permissions (see error log below). Would like to request adaptations to the Dockerfile so the image is not run as a root user.

�[93m[main 2021-09-29T14:36:07.848Z]�[0m rejected promise not handled within 1 second: Error: EACCES: permission denied, mkdir '/home/workspace/.opencode-server'
�[93m[main 2021-09-29T14:36:07.849Z]�[0m stack trace: Error: EACCES: permission denied, mkdir '/home/workspace/.opencode-server'
�[91m[main 2021-09-29T14:36:07.849Z]�[0m [Error: EACCES: permission denied, mkdir '/home/workspace/.opencode-server'] {
  errno: -13,
  code: 'EACCES',
  syscall: 'mkdir',
  path: '/home/workspace/.opencode-server'
}

Add a FAQ section to the `README.md`

Questions that need answers:

  • How is OpenVSCode Server different from VS Code?
  • How is OpenVSCode Server different from Gitpod?
  • How is OpenVSCode Server different from the Remote SSH VS Code extension?
  • How is OpenVSCode Server different from code-server?
  • How do I create a Node / Java / C / etc environment?
  • How do I authenticate with GitHub?
  • How do I protect my instance of OpenVSCode Server?
  • Is it safe to run as root?

Directory is called .opencode-server when it should be .openvscode-server

vscode-server@3a18d91a3a42:~$ ls -al
total 16
drwxr-xr-x 3 root          root          4096 Sep 29 10:53 .
drwxrwxr-x 1 root          root          4096 Sep 28 23:02 ..
-rw------- 1 vscode-server vscode-server  138 Sep 29 10:53 .bash_history
drwxr-xr-x 5 vscode-server vscode-server 4096 Sep 29 10:43 .opencode-server
vscode-server@3a18d91a3a42:~$ 

Running code locally while in Docker mode

Docker mode running on my personal iMac with the provided CLI arguments works great for running VS Code in the browser. However, it's unclear what the best practices are for running code written with VS Code locally, as all Terminal commands would be run in the sparse Docker container itself (in contrast to the chonky default container included with Codespaces).

What's the best way to work around this? Is there something similar to a .devcontainer as Codespaces does for installing only what you need?

Terminal fonts

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version:1.60.2
  • OS Version: Windows

Steps to Reproduce:

image

The font in the terminal is broken. I've tried to change the font family in settings,but nothing seems to work

Images cannot be displayed

If an image is opened in openvscode via the browser, the image is not displayed and an error is shown:
Screenshot
Is this a bug?

What is the default websocket port for the linux deployment?

Since OSS runs on the machine locally and is not available on the internet, I decided to use the nginx reverse proxy to make the webpage available, but in my config I used the port 3000 for the websocket and the site keeps telling me to reload with a "websocket error 1006". I think the problem here is that the right port for the websocket hasn't been configured, but I don't know which port it is, so I was wondering if anyone could help me out?
Running Ubuntu 20.04

style auth screen

For stock Code Server we need the auth screen which is basically an input form with one password field.

user data sync

We have user data sync enabled in Gitpod and can reuse it for Code Web Server. The following should be done:

  • there should be gitpod-authentication extension which integrates with Gitpod Server and provides gitpod and github auth providers
  • product.json should be changed to gitpod user data sync endpoint and auth

sudo: command not found

I deployed the server on Railway and it says "sudo: command not found" when I'm trying to install a package via apt. Code-Server didn't have this issue when being deployed on Railway. Is there a solution for this?

Rename `doc` to `docs`

Mainly for consistency with other public repos, but also because we're about to have a bunch of new guides in there too, besides engineering docs.

document integration

We should explain what are minimal bits we are adding and how they play with VS Code, also dev flow.

[Guides] AWS ECS Guide

It would be great if there was a guide using ECS and EFS to set this up using EC2 instances with a capacity provider.

Thoughts are it would look something like

  • ECS Cluster including EC2 ASG
  • ECS / EFS per user deployed into a single AZ to save money on EFS and internal ALB to connect to the instance

Broken/missing terminal locale setting in docker image

Typing UTF-8 characters like äöüß into the terminal doesn't work properly, they seem to be misinterpreted as control codes, which in the case of ö on a German keyboard messes up the whole current line. Tested using the latest Docker image in the web UI terminal (fully updated Firefox on macOS Big Sur and Safari on iPad) and in a docker exec-ed bash.

I noticed that the locale-specific environment variables either aren't set (docker exec) or are set to LANG=en_US.UTF-8, which isn't present in the image, only C, C.UTF-8 and POSIX. Setting the locale to C.UTF-8 by passing -e LANG=C.UTF-8 -e LC_ALL=C.UTF-8 to the docker run invocation makes it work for me (so setting these in the Dockerfile should fix this.)

Log shows `http://localhost:3000` while actually being available on 0.0.0.0

const address = addressInfo.address === '0.0.0.0' || addressInfo.address === '127.0.0.1' ? 'localhost' : addressInfo.address;

When the server is listening on 0.0.0.0, the log shows:

[main 2021-09-29T23:06:42.971Z] Web UI available at http://localhost:3000

which may give a false impression of openvscode-server only being available on localhost, but it is actually publicly accessible.

Please consider showing the actual bound address, or add an extra message, like:

Server listening on 0.0.0.0:3000
Web UI available at http://localhost:3000

This is tested on the 8b3e975 prelease:
https://github.com/gitpod-io/openvscode-server/releases/tag/openvscode-server-nightly-v1.61.0

Add ability to host on subdirectory

I would like to be able to host VS Code on a subdir on my domain (e.g. my-domain.com/vscode/), but a lot of scripts and the websocket connections default to the subdir-less host and often drop the correct referer, making it hard to serve VSCode on a subdirectory with nginx.

Documentation: Global User Settings

Where does one have to put the settings.json (global user settings) when building a docker image based on your image?

When using $HOME/.config/Code/User/settings.json as stated in the vscode documentation the settings get ignored

[nightly] /bin/sh: 1: /home/-linux-x64/server.sh: not found

% docker run -it --init -p 3000:3000 -v "$(pwd):/home/workspace:cached" gitpod/openvscode-server

Unable to find image 'gitpod/openvscode-server:latest' locally
latest: Pulling from gitpod/openvscode-server
e4ca327ec0e7: Already exists
0bf3c5605ff1: Pull complete
3a541112b2a5: Pull complete
4f4fb700ef54: Pull complete
7e1080b6bb0b: Pull complete
896fe6847bb8: Pull complete
204b66060d3c: Pull complete
877fb931d148: Pull complete
Digest: sha256:113999003297cb09a6a9fba52af905702d0596d7903f342706d4d857e2ea0ed1
Status: Downloaded newer image for gitpod/openvscode-server:latest
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
/bin/sh: 1: /home/-linux-x64/server.sh: not found
docker run -it --init -p 3000:3000 -v "$(pwd):/home/workspace:cached" --platform linux/amd64 gitpod/openvscode-server
/bin/sh: 1: /home/-linux-x64/server.sh: not found
docker run -it --init -p 3000:3000 -v "$(pwd):/home/workspace:cached" --platform linux/amd64 gitpod/openvscode-server:nightly
Unable to find image 'gitpod/openvscode-server:nightly' locally
nightly: Pulling from gitpod/openvscode-server
e4ca327ec0e7: Already exists
94b58e61f087: Pull complete
4b49ee48cf43: Pull complete
4f4fb700ef54: Pull complete
25c6cc8be9ad: Pull complete
a921e2ba227a: Pull complete
e14597cb34ea: Pull complete
1f2b7e30e79d: Pull complete
Digest: sha256:5cccacd345e6f60fc4a1673cdb5b830d6f630af543daff89eaaa521c9dbc9a49
Status: Downloaded newer image for gitpod/openvscode-server:nightly
/bin/sh: 1: /home/-linux-x64/server.sh: not found

[gitpod extension] - Add a Welcome screen walkthrough

As a person who is unfamiliar with Gitpod, but happens to open a Gitpod workspace (e.g. by clicking an "Open in Gitpod" button on a repo),
I want an opportunity to have an in-workspace "Get Started with Gitpod" experience
so that I can familiarize myself with Gitpod, its features and benefits.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.