-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdevfile.yaml
72 lines (72 loc) · 1.67 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
schemaVersion: 2.2.0
attributes:
controller.devfile.io/storage-type: per-workspace
metadata:
name: quarkus-demo
components:
- name: dev-tools
container:
image: image-registry.openshift-image-registry.svc:5000/eclipse-che-images/quarkus:latest
memoryLimit: 6Gi
mountSources: true
env:
- name: TESTCONTAINERS_RYUK_DISABLED
value: "true"
- name: TESTCONTAINERS_CHECKS_DISABLE
value: "true"
- name: DOCKER_HOST
value: "tcp://127.0.0.1:2475"
volumeMounts:
- name: m2
path: /home/user/.m2
- container:
args:
- '-f'
- /dev/null
command:
- tail
image: registry.access.redhat.com/ubi9/ubi-minimal
memoryLimit: 64M
mountSources: true
sourceMapping: /projects
name: quarkus-native-runner
- volume:
size: 4Gi
name: projects
- volume:
size: 2Gi
name: m2
commands:
- exec:
commandLine: mvn package
component: dev-tools
group:
isDefault: true
kind: build
workingDir: '${PROJECT_SOURCE}'
id: package
- exec:
commandLine: mvn package -Dnative -Dmaven.test.skip -Dquarkus.native.native-image-xmx=2G
component: dev-tools
group:
kind: build
label: Package Native
workingDir: '${PROJECT_SOURCE}'
id: package-native
- exec:
commandLine: 'mvn compile quarkus:dev'
component: dev-tools
group:
isDefault: true
kind: run
label: Start Development mode (Hot reload + debug)
workingDir: '${PROJECT_SOURCE}'
id: start-dev
- exec:
commandLine: ./code-with-quarkus-1.0.0-SNAPSHOT-runner
component: ubi-minimal
group:
kind: run
label: Start Native
workingDir: '${PROJECT_SOURCE}/target'
id: start-native