-
Notifications
You must be signed in to change notification settings - Fork 0
/
che-theia.devfile.yaml
196 lines (190 loc) · 6.88 KB
/
che-theia.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
# A devfile to setup che-theia projects.
# For developers who work on Theia core or che-theia core extensions and plugins.
specVersion: 0.0.1
name: cheTheia-in-che
projects:
- name: che-theia
source:
type: git
location: 'https://github.com/eclipse/che-theia.git'
- name: theia
source:
type: git
location: 'https://github.com/theia-ide/theia.git'
- name: devfiles
source:
type: git
location: 'https://github.com/sunix/devfiles.git'
- name: che-theia-generator
source:
type: git
location: 'https://github.com/ws-skeleton/che-theia-generator.git'
components:
-
alias: git-devtools
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: "2Gi"
-
alias: theia-editor
id: eclipse/che-theia/next
type: cheEditor
-
id: eclipse/che-machine-exec-plugin/0.0.1
type: chePlugin
-
id: redhat/vscode-yaml/0.4.0
type: chePlugin
-
id: che-incubator/typescript/1.30.2
type: chePlugin
memoryLimit: 2048M
commands:
-
name: init ... DEV che-theia
actions:
- type: exec
component: che-dev
command: >
che:theia init --dev &&
echo -e "\e[32mDone.\e[0m che:theia init"
workdir: /projects/theia
-
name: clean ... DEV che-theia
actions:
- type: exec
component: che-dev
command: >
che:theia clean &&
echo -e "\e[32mDone.\e[0m che:theia clean"
workdir: /projects/theia
-
name: build ... DEV che-theia
actions:
- type: exec
component: che-dev
command: >
killall node;
yarn &&
che:theia production &&
echo -e "\e[32mDone.\e[0m build ... che-theia"
workdir: /projects/theia
-
name: build ... containers-plugin
actions:
- type: exec
component: che-dev
command: >
killall node;
yarn &&
echo -e "\e[32mDone.\e[0m build ... containers-plugin"
workdir: /projects/che-theia/plugins/containers-plugin
-
name: build ... factory-plugin
actions:
- type: exec
component: che-dev
command: >
killall node;
yarn &&
echo -e "\e[32mDone.\e[0m build ... factory-plugin"
workdir: /projects/che-theia/plugins/factory-plugin
-
name: test-watch ... factory-plugin
actions:
- type: exec
component: che-dev
command: >
killall node;
yarn test-watch
workdir: /projects/che-theia/plugins/factory-plugin
-
name: run ... DEV che-theia + factory-plugin
actions:
- type: exec
component: theia-editor
command: >
kill `cat /tmp/node_theiadev.pid`;
rm /default-theia-plugins/eclipse_che_theia_factory_plugin.theia;
mkdir -p /tmp/theiadev_projects &&
export CHE_PROJECTS_ROOT=/tmp/theiadev_projects &&
export HOSTED_PLUGIN=/projects/che-theia/plugins/factory-plugin/ &&
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: /projects/theia/production
-
name: run ... DEV che-theia + container-plugin
actions:
- type: exec
component: theia-editor
command: >
kill `cat /tmp/node_theiadev.pid`;
rm /default-theia-plugins/eclipse_che_theia_containers_plugin.theia;
mkdir -p /tmp/theiadev_projects &&
export CHE_PROJECTS_ROOT=/tmp/theiadev_projects &&
export HOSTED_PLUGIN=/projects/che-theia/plugins/containers-plugin/ &&
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: /projects/theia/production
-
name: run ... HOSTED che-theia + factory-plugin
actions:
- type: exec
component: theia-editor
command: >
kill `cat /tmp/node_theiadev.pid`;
rm /default-theia-plugins/eclipse_che_theia_factory_plugin.theia;
mkdir -p /tmp/theiadev_projects &&
export CHE_PROJECTS_ROOT=/tmp/theiadev_projects &&
export HOSTED_PLUGIN=/projects/che-theia/plugins/factory-plugin/ &&
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
-
name: run ... HOSTED che-theia + container-plugin
actions:
- type: exec
component: theia-editor
command: >
kill `cat /tmp/node_theiadev.pid`;
rm /default-theia-plugins/eclipse_che_theia_containers_plugin.theia;
mkdir -p /tmp/theiadev_projects &&
export CHE_PROJECTS_ROOT=/tmp/theiadev_projects &&
export HOSTED_PLUGIN=/projects/che-theia/plugins/containers-plugin/ &&
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
-
name: run ... DEV yarn start ... che-theia + factory-plugin
actions:
- type: exec
component: che-dev
command: >
killall node;
mkdir -p /tmp/theiadev_projects &&
export CHE_PROJECTS_ROOT=/tmp/theiadev_projects &&
export HOSTED_PLUGIN=/projects/che-theia/plugins/factory-plugin/ &&
export GIT_EXEC_PATH=/usr/libexec/git-core && export USE_LOCAL_GIT=true && export LOCAL_GIT_DIRECTORY=/usr &&
yarn start /tmp/theiadev_projects --hostname=0.0.0.0 --port=3010
workdir: /projects/theia/examples/assembly
- name: run ... DEV yarn start ... che-theia + container-plugin
actions:
- type: exec
component: che-dev
command: >
killall node;
mkdir -p /tmp/theiadev_projects &&
export CHE_PROJECTS_ROOT=/tmp/theiadev_projects &&
export HOSTED_PLUGIN=/projects/che-theia/plugins/containers-plugin/ &&
export GIT_EXEC_PATH=/usr/libexec/git-core && export USE_LOCAL_GIT=true && export LOCAL_GIT_DIRECTORY=/usr &&
yarn start /tmp/theiadev_projects --hostname=0.0.0.0 --port=3010
workdir: /projects/theia/examples/assembly