forked from murphye/quarkus-daytrader
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdevfile.yaml
More file actions
122 lines (118 loc) · 2.96 KB
/
Copy pathdevfile.yaml
File metadata and controls
122 lines (118 loc) · 2.96 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
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
110
111
112
113
114
115
116
117
118
119
120
121
122
---
apiVersion: 1.0.0
metadata:
generateName: quarkus-
projects:
-
name: quarkus-daytrader
source:
type: git
location: "https://github.com/murphye/quarkus-daytrader.git"
components:
-
type: chePlugin
id: redhat/quarkus-java11/latest
-
type: dockerimage
alias: centos-quarkus-maven
image: quay.io/eclipse/che-quarkus:nightly
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: 4927M
mountSources: true
volumes:
- name: m2
containerPath: /home/user/.m2
endpoints:
- name: 'quarkus-daytrader'
port: 8080
attributes:
path: /
- type: dockerimage
alias: ubi-minimal
image: 'registry.access.redhat.com/ubi8/ubi-minimal'
memoryLimit: 32M
mountSources: true
endpoints:
- name: 'quarkus-daytrader'
port: 8080
attributes:
path: /
command: ['tail']
args: ['-f', '/dev/null']
- memoryLimit: 512Mi
type: dockerimage
volumes:
- name: postgresql-data
containerPath: /var/lib/postgresql/
image: postgres
alias: postgresql
env:
- value: tradedb
name: POSTGRES_USER
- value: tradedb
name: POSTGRES_PASSWORD
- value: tradedb
name: POSTGRES_DB
commands:
-
name: Package
actions:
-
type: exec
component: centos-quarkus-maven
command: "mvn package"
workdir: ${CHE_PROJECTS_ROOT}/quarkus-daytrader
-
name: Start Development mode (Hot reload + debug)
actions:
-
type: exec
component: centos-quarkus-maven
command: "mvn compile quarkus:dev"
workdir: ${CHE_PROJECTS_ROOT}/quarkus-daytrader
-
name: Package Native
actions:
-
type: exec
component: centos-quarkus-maven
command: "mvn package -Dnative -Dmaven.test.skip"
workdir: ${CHE_PROJECTS_ROOT}/quarkus-daytrader
-
name: Start Native
actions:
-
type: exec
component: ubi-minimal
command: ./getting-started-1.0-SNAPSHOT-runner
workdir: ${CHE_PROJECTS_ROOT}/quarkus-daytrader/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
}
]
}
-
name: psql
actions:
- type: exec
command: psql -d tradedb -U tradedb
component: postgresql