forked from eclipse-che/che
-
Notifications
You must be signed in to change notification settings - Fork 0
/
devfile.yaml
57 lines (57 loc) · 1.36 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
apiVersion: 1.0.0
metadata:
name: che-server-in-che
projects:
- name: che
source:
type: git
location: 'https://github.com/eclipse/che.git'
components:
- type: dockerimage
image: 'eclipse/che-dev:nightly'
alias: che-server-dev
mountSources: true
memoryLimit: 5Gi
volumes:
- name: maven
containerPath: /home/user/.m2
- type: dockerimage
image: 'eclipse/che-server:nightly'
alias: che-server-runtime
mountSources: true
memoryLimit: 1Gi
endpoints:
- name: che-dev
attributes:
discoverable: 'true'
public: 'true'
port: 8080
env:
- name: CHE_HOST
value: 'che-dev'
- name: CHE_API
value: http://che-dev:8080/api
- name: CHE_API_INTERNAL
value: http://che-dev:8080/api
- name: CHE_API_EXTERNAL
value: http://che-dev:8080/api
command:
- 'tail'
args:
- '-f'
- '/dev/null'
- type: chePlugin
id: redhat/java8/latest
commands:
- name: build
actions:
- type: exec
component: che-server-dev
command: mvn clean install -Pnative -DskipIntegrationTests
workdir: /projects/che
- name: build without tests
actions:
- type: exec
component: che-server-dev
command: mvn clean install -Pnative -DskipTests=true
workdir: /projects/che