-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdevfile.yaml
90 lines (74 loc) · 2.37 KB
/
devfile.yaml
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
77
78
79
80
81
82
83
84
85
86
87
88
# A devfile to setup a vscode-teletype extension in Che.
apiVersion: 1.0.0
metadata:
name: vscode-teletype
projects:
- name: vscode-teletype
source:
location: 'https://github.com/Rijul5/vscode-teletype'
type: git
branch: master
components:
- alias: vscode-extension-sidecar
type: dockerimage
image: eclipse/che-theia-endpoint-runtime:7.0.0-next
endpoints:
- name: theia-remote-endpoint
port: 10000
attributes:
protocol: ws
public: 'true'
memoryLimit: 512M
mountSources: true
- alias: git
type: dockerimage
image: sunix/git-devtools
mountSources: true
memoryLimit: 256M
- alias: che-dev
type: dockerimage
image: eclipse/che-theia-dev:nightly
mountSources: true
endpoints:
- name: "theia-dev-flow"
port: 3010
attributes:
protocol: http
public: 'true'
memoryLimit: 1024M
- id: redhat/vscode-yaml/latest
type: chePlugin
- id: che-incubator/typescript/latest
type: chePlugin
memoryLimit: 1024M
- type: cheEditor
alias: theia-editor
id: eclipse/che-theia/7.0.0-next
commands:
- name: build ... vscode ext
actions:
- type: exec
component: che-dev
command: npm install -g vsce && npm install && vsce package
workdir: /projects/vscode-teletype/
- name: run ... remote vscode ext
actions:
- type: exec
component: vscode-extension-sidecar
command: >
export THEIA_PLUGIN_ENDPOINT_DISCOVERY_PORT='2504' &&
export THEIA_PLUGINS='local-dir:///projects/vscode-teletype/' &&
export THEIA_PLUGIN_ENDPOINT_PORT='10000' &&
node /home/theia/lib/node/plugin-remote.js
workdir: /home/theia/
- name: run ... HOSTED che-theia + detect remote vscode ext
actions:
- type: exec
component: theia-editor
command: >
kill `cat /tmp/node_theiadev.pid` &> /dev/null;
mkdir -p /tmp/theiadev_projects &&
export THEIA_PLUGIN_ENDPOINT_DISCOVERY_PORT='2504' &&
export CHE_PROJECTS_ROOT=/tmp/theiadev_projects &&
node src-gen/backend/main.js /tmp/theiadev_projects --hostname=0.0.0.0 --port=3130 & echo $!> /tmp/node_theiadev.pid ; wait `cat /tmp/node_theiadev.pid`
workdir: /home/theia