-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdevfile.yaml
74 lines (73 loc) · 2.19 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
apiVersion: 1.0.0
metadata:
generateName: drogue-iot-
projects:
- name: quarkus-mqtt-integration-starter
source:
type: git
location: 'https://github.com/drogue-iot/quarkus-mqtt-integration-starter.git'
branch: main
components:
- id: redhat/vscode-xml/latest
type: chePlugin
- id: redhat/quarkus-java11/latest
type: chePlugin
- id: redhat/vscode-yaml/latest
type: chePlugin
- type: dockerimage
alias: maven
image: quay.io/eclipse/che-quarkus:7.30.2
env:
- name: JAVA_OPTS
value: '-XX:MaxRAMPercentage=50.0 -XX:+UseParallelGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xms20m -Djava.security.egd=file:/dev/./urandom -Duser.home=/home/jboss'
- name: MAVEN_OPTS
value: $(JAVA_OPTS)
memoryLimit: 1Gi
mountSources: true
volumes:
- name: m2
containerPath: /home/jboss/.m2
endpoints:
- name: quarkus-development-server
port: 8080
- attributes:
path: /
name: starter-frontend-endpoint
port: 8080
- attributes:
public: 'false'
name: debug
port: 5005
- attributes:
public: 'false'
name: tests
port: 8081
commands:
- name: Start Quarkus in devmode (hot deploy + debug)
actions:
- type: exec
component: maven
command: 'mvn compile quarkus:dev -Dquarkus.http.host=0.0.0.0 -Dquarkus.live-reload.instrumentation=false'
workdir: '${CHE_PROJECTS_ROOT}/quarkus-mqtt-integration-starter'
- name: Package the application
actions:
- type: exec
component: maven
command: mvn package
workdir: '${CHE_PROJECTS_ROOT}/quarkus-mqtt-integration-starter'
- name: Attach remote debugger
actions:
- type: vscode-launch
referenceContent: |
{
"version": "0.2.0",
"configurations": [
{
"type": "java",
"request": "attach",
"name": "Attach to Remote Quarkus App",
"hostName": "localhost",
"port": 5005
}
]
}