-
Notifications
You must be signed in to change notification settings - Fork 8
/
devfile.yaml
78 lines (66 loc) · 1.8 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
apiVersion: 1.0.0
metadata:
generateName: quarkus-che-demo-
projects:
- source:
type: git
location: 'https://github.com/sunix/che-quarkus-demo'
name: che-quarkus-demo
components:
- alias: quarkus-builder
type: dockerimage
image: quay.io/quarkus/centos-quarkus-maven:graalvm-1.0.0-rc16
memoryLimit: 2Gi
args: ['sleep', 'infinity']
mountSources: true
volumes:
- name: mavenrepo
containerPath: /project/.m2
env:
- name: HOME
value: /project
- alias: quarkus-runner
type: dockerimage
image: registry.fedoraproject.org/fedora-minimal:29
memoryLimit: 16M
mountSources: true
command: ['tail']
args: ['-f', '/dev/null']
- alias: git
type: dockerimage
image: sunix/git-devtools
mountSources: true
memoryLimit: 256M
args: ['sleep', 'infinity']
- alias: java
type: chePlugin
id: redhat/java/latest
memoryLimit: 1536M
- alias: yaml
id: redhat/vscode-yaml/latest
type: chePlugin
commands:
- name: compile quarkus:dev
actions:
- type: exec
command: pkill java; mvn compile quarkus:dev
component: quarkus-builder
workdir: /projects/che-quarkus-demo/hello-quarkus
- name: package
actions:
- type: exec
command: mvn package
component: quarkus-builder
workdir: /projects/che-quarkus-demo/hello-quarkus
- name: package -Pnative
actions:
- type: exec
command: mvn package -Pnative
component: quarkus-builder
workdir: /projects/che-quarkus-demo/hello-quarkus
- name: start native
actions:
- type: exec
command: ./hello-quarkus-1.0-SNAPSHOT-runner -Dquarkus.http.host=0.0.0.0
component: quarkus-runner
workdir: /projects/che-quarkus-demo/hello-quarkus/target