forked from PerfectSlayer/live-stream-question
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevfile.yaml
98 lines (95 loc) · 2.64 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
---
apiVersion: 1.0.0
metadata:
generateName: parisjug-live-stream-question-
components:
-
type: chePlugin
id: redhat/quarkus-java11/latest
-
type: dockerimage
alias: centos-quarkus-maven
image: quay.io/eclipse/che-quarkus@sha256:d06ad1dae2ee06a292a4fc15cc30ca592decdd4ecb6d694f77742518a8825023
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)
- name: QUARKUS_HTTP_HOST
value: 0.0.0.0
memoryLimit: 4G
mountSources: true
volumes:
- name: m2
containerPath: /home/user/.m2
endpoints:
- name: 'eightyeighty'
port: 8080
- name: 'debug'
port: 5005
attributes:
public: 'false'
-
type: dockerimage
alias: ubi-minimal
image: 'registry.access.redhat.com/ubi8/ubi-minimal@sha256:b6b0c30bb747dfacee216e5ae2ad02adb18920d8f744c04f29354278e19df2a9'
memoryLimit: 32M
mountSources: true
endpoints:
- name: 'eightyeighty'
port: 8080
command: ['tail']
args: ['-f', '/dev/null']
commands:
-
name: Package
actions:
-
type: exec
component: centos-quarkus-maven
command: "./mvnw package"
workdir: ${CHE_PROJECTS_ROOT}/live-stream-question
-
name: Start Development mode (Hot reload + debug)
actions:
-
type: exec
component: centos-quarkus-maven
command: "mvn compile quarkus:dev"
workdir: ${CHE_PROJECTS_ROOT}/live-stream-question
-
name: Package Native
actions:
-
type: exec
component: centos-quarkus-maven
command: "mvn package -Dnative -Dmaven.test.skip -Dquarkus.native.native-image-xmx=2G"
workdir: ${CHE_PROJECTS_ROOT}/live-stream-question
-
name: Start Native
actions:
-
type: exec
component: ubi-minimal
command: ./live-stream-question-1.0.0-SNAPSHOT-runner
workdir: ${CHE_PROJECTS_ROOT}/live-stream-question/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
}
]
}