-
Notifications
You must be signed in to change notification settings - Fork 1
/
devfile.yaml
109 lines (96 loc) · 2.82 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
apiVersion: 1.0.0
metadata:
generateName: event-publisher-
components:
- type: chePlugin
id: redhat/quarkus-java11/latest
- type: dockerimage
alias: centos-quarkus-maven
image: quay.io/eclipse/che-quarkus:7.37.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/user"
- name: MAVEN_OPTS
value: $(JAVA_OPTS)
memoryLimit: 3G
mountSources: true
volumes:
- name: m2
containerPath: /home/user/.m2
- type: dockerimage
alias: ubi-minimal
image: 'registry.access.redhat.com/ubi8/ubi-minimal'
memoryLimit: 32M
mountSources: true
command: ['tail']
args: ['-f', '/dev/null']
- mountSources: true
memoryLimit: 256M
type: dockerimage
image: sunix/git-devtools
alias: git
- id: ms-vscode/vscode-github-pullrequest/latest
type: chePlugin
commands:
- name: Package
actions:
-
type: exec
component: centos-quarkus-maven
command: "mvn package"
workdir: ${CHE_PROJECTS_ROOT}/event-publisher
- name: Start Development mode (Hot reload + debug)
actions:
-
type: exec
component: centos-quarkus-maven
command: >-
echo Enter the command arguments;
read arguments;
set -o xtrace;
mvn compile quarkus:dev -Dquarkus.args="$arguments"
workdir: ${CHE_PROJECTS_ROOT}/event-publisher
- name: Package Native
actions:
-
type: exec
component: centos-quarkus-maven
command: "mvn package -Dnative -Dmaven.test.skip"
workdir: ${CHE_PROJECTS_ROOT}/event-publisher
- name: Package Native (native-image-xmx=2G)
actions:
-
type: exec
component: centos-quarkus-maven
command: "mvn package -Dnative -Dmaven.test.skip -Dquarkus.native.native-image-xmx=2G"
workdir: ${CHE_PROJECTS_ROOT}/event-publisher
- name: Start Native
actions:
-
type: exec
component: ubi-minimal
command: >-
echo Enter the command arguments;
read arguments;
set -o xtrace;
./parisjug-event-publisher $arguments
workdir: ${CHE_PROJECTS_ROOT}/event-publisher/target
- 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
}
]
}