forked from eclipse-che/che-theia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathche-theia-all.devfile.yaml
187 lines (165 loc) · 6.64 KB
/
che-theia-all.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
# A devfile to setup che-theia projects.
# For developers who work on Theia core or che-theia core extensions and plugins.
apiVersion: 1.0.0
metadata:
name: che-theia-all
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'
components:
- alias: git
type: dockerimage
image: sunix/git-devtools
mountSources: true
memoryLimit: 256M
- alias: che-dev
type: dockerimage
image: eclipse/che-theia-dev:next
mountSources: true
endpoints:
- name: "theia-dev-flow"
port: 3010
attributes:
protocol: http
public: 'true'
memoryLimit: "3Gi"
- id: redhat/vscode-yaml/latest
type: chePlugin
- id: che-incubator/typescript/latest
type: chePlugin
memoryLimit: 2048M
- type: cheEditor
alias: theia-editor
id: eclipse/che-theia/7.0.0-rc-3.0
memoryLimit: "1Gi"
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 &&
cp /projects/che-theia/plugins/factory-plugin/eclipse_che_theia_factory_plugin.theia /default-theia-plugins/ &&
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 &&
cp /projects/che-theia/plugins/containers-plugin/eclipse_che_theia_containers_plugin.theia /default-theia-plugins/ &&
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