-
Notifications
You must be signed in to change notification settings - Fork 0
/
devfile.yaml
69 lines (68 loc) · 1.88 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
schemaVersion: 2.2.0
commands:
- id: compile
exec:
commandLine: ./mvnw -Dmaven.repo.local=/home/user/.m2/repository compile
component: mvn
workingDir: $PROJECTS_ROOT
- id: analyze
exec:
commandLine: ./mvnw clean verify sonar:sonar
component: mvn
workingDir: $PROJECTS_ROOT
- id: package
exec:
commandLine: ./mvnw clean package -Dquarkus.native.container-build=true -Dquarkus.container-image.build=true
-Dquarkus.native.container-runtime=podman
component: mvn
workingDir: $PROJECTS_ROOT
- id: rununittests
exec:
commandLine: ./mvnw verify -Dquarkus.http.test-host=1.2.3.4 -Dquarkus.http.test-port=4321
component: mvn
workingDir: $PROJECTS_ROOT
- id: run
exec:
commandLine: ./mvnw -Dmaven.repo.local=/home/user/.m2/repository quarkus:dev -Dquarkus.http.host=0.0.0.0
-Djava.util.logging.manager=org.jboss.logmanager.LogManager
component: mvn
group:
kind: run
hotReloadCapable: true
workingDir: $PROJECTS_ROOT
- id: debug
exec:
commandLine: mvn -Dmaven.repo.local=/home/user/.m2/repository quarkus:dev -Dquarkus.http.host=0.0.0.0
-Djava.util.logging.manager=org.jboss.logmanager.LogManager -Ddebug=${DEBUG_PORT}
component: mvn
group:
kind: debug
hotReloadCapable: true
workingDir: $PROJECTS_ROOT
- id: build
composite:
commands:
- compile
- analyze
- rununittests
- package
components:
- name: mvn
container:
image: registry.access.redhat.com/ubi8/openjdk-11
memoryLimit: 512Mi
mountSources: true
endpoints:
- name: http
targetPort: 8080
- name: debug
targetPort: 5005
volumeMounts:
- name: m2
path: /home/user/.m2
- name: m2
volume:
size: 3Gi
events:
postStart:
- compile