forked from PerfectSlayer/twitter-raffle
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdevfile.yaml
95 lines (84 loc) · 2.56 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
apiVersion: 1.0.0
metadata:
generateName: twitter-raffle-
components:
- id: redhat/quarkus-java11/latest
type: chePlugin
- mountSources: true
endpoints:
- name: eighty-eighty
port: 8080
memoryLimit: 4927M
type: dockerimage
volumes:
- name: m2
containerPath: /home/user/.m2
alias: centos-quarkus-maven
image: 'quay.io/eclipse/che-quarkus:nightly'
env:
- 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: JAVA_OPTS
- value: $(JAVA_OPTS)
name: MAVEN_OPTS
- mountSources: true
endpoints:
- name: eighty-eighty
port: 8080
command:
- tail
args:
- '-f'
- /dev/null
memoryLimit: 32M
type: dockerimage
alias: ubi-minimal
image: registry.access.redhat.com/ubi8/ubi-minimal
- id: ms-vscode/vscode-github-pullrequest/latest
type: chePlugin
commands:
- name: Package
actions:
- workdir: '${CHE_PROJECTS_ROOT}/twitter-raffle'
type: exec
command: mvn package
component: centos-quarkus-maven
- name: Start Development mode (Hot reload + debug)
actions:
- workdir: '${CHE_PROJECTS_ROOT}/twitter-raffle'
type: exec
command: 'mvn compile quarkus:dev'
component: centos-quarkus-maven
- name: Package Native
actions:
- workdir: '${CHE_PROJECTS_ROOT}/twitter-raffle'
type: exec
command: mvn package -Dnative -Dmaven.test.skip
component: centos-quarkus-maven
- name: Package Native xmx 2G
actions:
- workdir: '${CHE_PROJECTS_ROOT}/twitter-raffle'
type: exec
command: mvn package -Dnative -Dmaven.test.skip -Dquarkus.native.native-image-xmx=2G
component: centos-quarkus-maven
- name: Start Native
actions:
- workdir: '${CHE_PROJECTS_ROOT}/twitter-raffle/target'
type: exec
command: ./twitter-raffle-1.0.0-SNAPSHOT-runner
component: ubi-minimal
- name: Attach remote debugger
actions:
- referenceContent: |
{
"version": "0.2.0",
"configurations": [
{
"type": "java",
"request": "attach",
"name": "Attach to Remote Quarkus App",
"hostName": "localhost",
"port": 5005
}
]
}
type: vscode-launch