forked from quarkusio/quarkus-quickstarts
-
Notifications
You must be signed in to change notification settings - Fork 5
/
devfile.yaml
75 lines (69 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
schemaVersion: 2.1.0
metadata:
name: quarkus-quickstart
components:
- name: tools
container:
image: quay.io/devfile/universal-developer-image:ubi8-3055e6d
env:
- name: QUARKUS_HTTP_HOST
value: 0.0.0.0
endpoints:
- exposure: none
name: debug
protocol: tcp
targetPort: 5005
- exposure: public
name: hello-greeting-endpoint
protocol: http
targetPort: 8080
path: /hello/greeting/che-user
volumeMounts:
- name: m2
path: /home/user/.m2
memoryLimit: 4.7G
mountSources: true
- name: ubi-minimal
container:
image: registry.access.redhat.com/ubi8/ubi-minimal
command: ['tail']
args: ['-f', '/dev/null']
memoryLimit: 64M
mountSources: true
- name: m2
volume:
size: 1G
commands:
- id: package
exec:
component: tools
workingDir: ${PROJECT_SOURCE}/getting-started
commandLine: "mvn package"
group:
kind: build
isDefault: true
- id: package-native
exec:
label: "Package Native"
component: tools
workingDir: ${PROJECT_SOURCE}/getting-started
commandLine: "mvn package -Dnative -Dmaven.test.skip -Dquarkus.native.native-image-xmx=2G"
group:
kind: build
- id: start-dev
exec:
label: "Start Development mode (Hot reload + debug)"
component: tools
workingDir: ${PROJECT_SOURCE}/getting-started
commandLine: "mvn compile quarkus:dev"
group:
kind: run
isDefault: true
- id: start-native
exec:
label: "Start Native"
component: ubi-minimal
workingDir: ${PROJECT_SOURCE}/getting-started/target
commandLine: "./getting-started-1.0.0-SNAPSHOT-runner"
group:
kind: run