forked from eclipse/openvsx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitpod.yml
76 lines (73 loc) · 2.08 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
69
70
71
72
73
74
75
76
image:
file: .gitpod.dockerfile
ports:
- port: 3000
name: Web UI
description: static resources
- port: 8080
visibility: public
onOpen: ignore
name: Server
description: API, must be public for CORS
- port: 8081
name: Test report
- port: 5005
name: Java debugging
onOpen: ignore
- port: 5432
name: PostgreSQL
onOpen: ignore
- port: 9200
name: Elasticsearch
onOpen: ignore
- port: 9300
name: Elasticsearch
onOpen: ignore
- port: 9229
name: NodeJS debugging
onOpen: ignore
tasks:
- init: |
# Build all components
cd cli
yarn install
yarn prepare
cd ../webui
yarn install
yarn build
yarn build:default
cd ..
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 -Expack.security.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 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