-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevfile.yaml
More file actions
55 lines (54 loc) · 1.39 KB
/
devfile.yaml
File metadata and controls
55 lines (54 loc) · 1.39 KB
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
schemaVersion: 2.2.2
metadata:
name: workshop-module2-java
version: 1.0.0
description: DevSpaces workspace for Quarkus app
attributes:
che-editor: vscode
components:
- name: tools
container:
image: image-registry.openshift-image-registry.svc:5000/openshift/udi-rhel9:latest
env:
- name: QUARKUS_HTTP_HOST
value: 0.0.0.0
endpoints:
- exposure: none
name: debug
protocol: tcp
targetPort: 5005
- exposure: public
name: hello-by-lang
protocol: https
targetPort: 8080
path: /helloworld-by-language
volumeMounts:
- name: m2
path: /home/user/.m2
cpuLimit: '4'
cpuRequest: '1'
memoryLimit: '8G'
memoryRequest: '4G'
mountSources: true
- name: m2
volume:
size: 1G
commands:
- id: 1-package
exec:
label: "1. Package the application"
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: "mvn package"
group:
kind: build
isDefault: true
- id: 2-startdev
exec:
label: "2. Start Development mode (Hot reload + debug)"
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: "mvn compile quarkus:dev -Dquarkus.analytics.disabled=true -Dquarkus.live-reload.enabled=true"
group:
kind: run
isDefault: true