Skip to content

Commit 83304ac

Browse files
committed
getting started
1 parent 8e0cd66 commit 83304ac

File tree

8 files changed

+51
-60
lines changed

8 files changed

+51
-60
lines changed

.gitpod.Dockerfile

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
FROM gitpod/workspace-full:latest
22

3-
USER root
4-
5-
# leeway
6-
ENV LEEWAY_NESTED_WORKSPACE=true
7-
RUN cd /usr/bin && curl -fsSL https://github.com/gitpod-io/leeway/releases/download/v0.2.5/leeway_0.2.5_Linux_x86_64.tar.gz | tar xz
8-
93
USER gitpod
104

115
# We use latest major version of Node.js distributed VS Code. (see about dialog in your local VS Code)
@@ -25,33 +19,3 @@ RUN sudo apt-get update \
2519
libasound2 libgbm1 xfonts-base xfonts-terminus fonts-noto fonts-wqy-microhei \
2620
fonts-droid-fallback vim-tiny nano libgconf2-dev libgtk-3-dev twm \
2721
&& sudo apt-get clean && sudo rm -rf /var/cache/apt/* && sudo rm -rf /var/lib/apt/lists/* && sudo rm -rf /tmp/*
28-
29-
## Register leeway autocompletion in bashrc
30-
RUN bash -c "echo . \<\(leeway bash-completion\) >> ~/.bashrc"
31-
32-
### Google Cloud ###
33-
# not installed via repository as then 'docker-credential-gcr' is not available
34-
ARG GCS_DIR=/opt/google-cloud-sdk
35-
ENV PATH=$GCS_DIR/bin:$PATH
36-
RUN sudo chown gitpod: /opt \
37-
&& mkdir $GCS_DIR \
38-
&& curl -fsSL https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-344.0.0-linux-x86_64.tar.gz \
39-
| tar -xzvC /opt \
40-
&& /opt/google-cloud-sdk/install.sh --quiet --usage-reporting=false --bash-completion=true \
41-
--additional-components docker-credential-gcr alpha beta \
42-
# needed for access to our private registries
43-
&& docker-credential-gcr configure-docker
44-
45-
# Install tools for gsutil
46-
RUN sudo install-packages \
47-
gcc \
48-
python-dev \
49-
python-setuptools
50-
51-
RUN bash -c "pip uninstall crcmod; pip install --no-cache-dir -U crcmod"
52-
53-
# Set Application Default Credentials (ADC) based on user-provided env var
54-
RUN echo ". /workspace/vscode/scripts/setup-google-adc.sh" >> ~/.bashrc
55-
56-
ENV LEEWAY_WORKSPACE_ROOT=/workspace/vscode
57-
ENV LEEWAY_REMOTE_CACHE_BUCKET=gitpod-core-leeway-cache-branch

.gitpod.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ ports:
55
onOpen: open-browser
66
tasks:
77
- init: |
8-
export VSCODE_INIT_BUILD_DIR=$(leeway describe "//:init" -t "/tmp/build/{{ .Metadata.Name }}.{{ .Metadata.Version }}")
9-
leeway build
10-
sudo cp -rup "$VSCODE_INIT_BUILD_DIR/install/." . | true
8+
yarn
9+
yarn gitpod:init
1110
command: |
1211
gp sync-done init
1312
export NODE_ENV=development

BUILD.yaml

Lines changed: 0 additions & 17 deletions
This file was deleted.

README.md

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,24 @@ At Gitpod we've been asked a lot about how we do it. So we thought we might just
1818

1919
## Getting started
2020

21-
The easiest way to get started is ...
21+
### Docker
22+
23+
- Start the server:
24+
```bash
25+
docker run -it --init -p 3000:3000 -v "$(pwd):/home/workspace:cached" gitpod/vscode
26+
```
27+
- after this, visit [localhost:3000](http://localhost:3000).
28+
29+
### Linux
30+
31+
- [Download the latest release](https://github.com/gitpod-io/vscode-releases/releases/latest)
32+
- untar and run the server:
33+
```bash
34+
tar -xzf code-web-server-v*.tar.gz
35+
cd code-web-server-v*
36+
./server.sh
37+
```
38+
- after this, visit [localhost:3000](http://localhost:3000).
2239

2340
## The scope of this project
2441

@@ -27,3 +44,29 @@ This project really only adds the minimal bits required to run VS Code in a web
2744
> **For any feature requests, bug reports, or contributions that are not specific to running VS Code in a web server context,**
2845
>
2946
> **please go to [Visual Studio Code - Open Source "OSS"](https://github.com/microsoft/vscode)**
47+
48+
## Contributing
49+
50+
### Starting from sources
51+
52+
- [Start a Gitpod workspace](https://gitpod.io/#https://github.com/gitpod-io/vscode/tree/web-server)
53+
- Dev version of the server should be already up and running. Notice that the dev version is slower to load since it is not bundled (around 2000 files).
54+
55+
### Updating VS Code
56+
57+
- Update your local VS Code, open the About dialog and remember the release commit and Node.js version.
58+
- Fetch latest upstream changes and rebase the branch based on the local VS Code's commit. Drop all commits before `code web server initial commit`.
59+
- Check that [.gitpod.Dockerfile](./.gitpod.Dockerfile) and [remote/.yarnrc](./remote/.yarnrc) has latest major Node.js version of local VS Code's Node.js version.
60+
- Recompile everything: `git clean -dfx && yarn && yarn gitpod:init`
61+
- Run smoke tests: `yarn gitpod:smoketest`.
62+
- Start the dev server and play:
63+
- filesystem (open some project)
64+
- extension host process: check language smartness
65+
- extension management (installing/uninstalling)
66+
- install VIM extension to test web extensions
67+
- terminals
68+
- code cli should open files and manage extensions: `alias code='export VSCODE_DEV=1 && node out/server-cli.js'`
69+
- Check server/browser logs for any warnings/errors about missing capabilities and fix them.
70+
- Build the production server with all changes: `yarn gulp server-min`.
71+
- Run it and play as with the dev server: `/workspace/server-pkg/server.sh`
72+
- Open a PR with your changes and ask for help if needed. It should be agaist `gitpod-io/vscode` repo and `web-server` branch!

WORKSPACE.yaml

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@
5555
"minify-vscode-reh-web": "node --max_old_space_size=4095 ./node_modules/gulp/bin/gulp.js minify-vscode-reh-web",
5656
"hygiene": "node --max_old_space_size=4095 ./node_modules/gulp/bin/gulp.js hygiene",
5757
"core-ci": "node --max_old_space_size=4095 ./node_modules/gulp/bin/gulp.js core-ci",
58-
"extensions-ci": "node --max_old_space_size=4095 ./node_modules/gulp/bin/gulp.js extensions-ci"
58+
"extensions-ci": "node --max_old_space_size=4095 ./node_modules/gulp/bin/gulp.js extensions-ci",
59+
"gitpod:init": "yarn --cwd ./build compile && yarn compile && yarn download-builtin-extensions",
60+
"gitpod:smoketest": "yarn --cwd ./test/smoke compile && yarn smoketest-no-compile --web --verbose --headless --electronArgs=\"--disable-dev-shm-usage --use-gl=swiftshader\""
5961
},
6062
"dependencies": {
6163
"@vscode/vscode-languagedetection": "1.0.15",

product.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"GitHub.vscode-pull-request-github",
2828
"GitHub.vscode-pull-request-github-insiders",
2929
"ms-python.python",
30+
"ms-toolsai.jupyter",
3031
"ms-vscode.js-debug-nightly",
3132
"ms-vscode.js-debug",
3233
"ms-vscode.lsif-browser",

test/smoke/src/areas/extensions/extensions.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*--------------------------------------------------------------------------------------------*/
55

66
import minimist = require('minimist');
7-
import { Application, Quality } from '../../../../automation';
7+
import { Application } from '../../../../automation';
88
import { afterSuite, beforeSuite } from '../../utils';
99

1010
export function setup(opts: minimist.ParsedArgs) {

0 commit comments

Comments
 (0)