forked from eclipse/openvsx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitpod.yml
68 lines (65 loc) · 1.93 KB
/
.gitpod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
image:
file: .gitpod.dockerfile
ports:
# Web UI (static resources)
- port: 3000
# Server (API, must be public for CORS)
- port: 8080
visibility: public
onOpen: ignore
# Test report
- port: 8081
# Java debugging
- port: 5005
onOpen: ignore
# PostgreSQL
- port: 5432
onOpen: ignore
# Elasticsearch
- port: 9200
onOpen: ignore
- port: 9300
onOpen: ignore
# NodeJS debugging
- port: 9229
onOpen: ignore
tasks:
- init: |
# Build all components
yarn --cwd cli
yarn --cwd webui
yarn --cwd webui build:default
server/gradlew -p server assemble downloadTestExtensions
name: Server
command: |
if [[ $NPM_TOKEN ]]; then echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc; fi
# Start Elasticsearch as background process
$ES_HOME/bin/elasticsearch -d -p $ES_HOME/pid -Ediscovery.type=single-node -Expack.ml.enabled=false
gp ports await 9200
# Start the server application
cd server
./scripts/generate-properties.sh
./gradlew runServer
- name: WebUI
command: |
gp ports await 8080
# Start Express for serving frontend resources
cd webui
yarn start:default
- name: Publisher
command: |
gp ports await 8080
# Use the CLI to publish some test extensions to the running server
export OVSX_REGISTRY_URL=http://localhost:8080
export OVSX_PAT=super_token
export PUBLISHERS="DotJoshJohnson eamodio Equinusocio felixfbecker formulahendry HookyQR ms-azuretools ms-mssql ms-python ms-vscode octref redhat ritwickdey sburg vscode vscodevim Wscats"
for pub in $PUBLISHERS; do cli/lib/ovsx create-namespace $pub; done
find server/build/test-extensions-builtin -name '*.vsix' -exec cli/lib/ovsx publish '{}' \;
find server/build/test-extensions -name '*.vsix' -exec cli/lib/ovsx publish '{}' \;
vscode:
extensions:
- dbaeumer.vscode-eslint
- redhat.java
- vscjava.vscode-java-debug
- vscjava.vscode-java-test
- richardwillis.vscode-gradle