forked from eclipse-che/che-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
devfile.yaml
49 lines (49 loc) · 1.31 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
apiVersion: 1.0.0
metadata:
generateName: che-dashboard-react-
attributes:
persistVolumes: 'false'
components:
- mountSources: true
endpoints:
- attributes:
public: 'true'
protocol: http
path: /
name: dashboard-dev-server
port: 3000
command:
- tail
- '-f'
- /dev/null
memoryLimit: 3Gi
type: dockerimage
alias: dashboard-dev
image: 'docker.io/node:12.20.1-alpine3.12'
- id: vscode/typescript-language-features/latest
type: chePlugin
commands:
- name: '[UD] install dependencies'
actions:
- workdir: /projects/che-dashboard
type: exec
command: yarn install
component: dashboard-dev
- name: '[UD] compile'
actions:
- workdir: /projects/che-dashboard
type: exec
command: yarn install && yarn compile
component: dashboard-dev
- name: '[UD] test'
actions:
- workdir: /projects/che-dashboard
type: exec
command: yarn install && yarn test
component: dashboard-dev
- name: '[UD] start'
actions:
- workdir: /projects/che-dashboard
type: exec
command: 'yarn install && yarn start --port=3000 --host=0.0.0.0 --env.server=${CHE_API_INTERNAL%????} --env.token=${CHE_MACHINE_TOKEN}'
component: dashboard-dev