-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevfile.yml
More file actions
132 lines (132 loc) · 3.94 KB
/
devfile.yml
File metadata and controls
132 lines (132 loc) · 3.94 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
123
124
125
126
127
128
129
130
131
132
apiVersion: 1.0.0
metadata:
name: food-services
projects:
- name: fruit-service
source:
location: 'https://github.com/1redhat/crw-fruit-service.git'
type: git
- name: legume-service
source:
location: 'https://github.com/1redhat/crw-legume-service.git'
type: git
components:
- id: redhat/quarkus-java11/latest
type: chePlugin
- mountSources: true
endpoints:
- name: quarkus-development-server
port: 8080
- name: fruits-endpoint
port: 8080
attributes:
path: /fruits
- name: fruits-ui
port: 8080
attributes:
path: /fruits.html
memoryLimit: 512Mi
type: dockerimage
volumes:
- name: m2
containerPath: /home/jboss/.m2
alias: maven-fruit
image: >-
registry.redhat.io/codeready-workspaces/plugin-java11-rhel8@sha256:38e363ba28941e6ef688d511c388324d0f83f7a1fac3eb65e09aa50858f0ae84
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/jboss
name: JAVA_OPTS
- value: $(JAVA_OPTS)
name: MAVEN_OPTS
- mountSources: true
endpoints:
- name: quarkus-development-server
port: 8090
- name: legumes-endpoint
port: 8090
attributes:
path: /legumes
- name: legumes-ui
port: 8090
attributes:
path: /legumes.html
memoryLimit: 512Mi
type: dockerimage
volumes:
- name: m2
containerPath: /home/jboss/.m2
alias: maven-legumes
image: >-
registry.redhat.io/codeready-workspaces/plugin-java11-rhel8@sha256:38e363ba28941e6ef688d511c388324d0f83f7a1fac3eb65e09aa50858f0ae84
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/jboss
name: JAVA_OPTS
- value: $(JAVA_OPTS)
name: MAVEN_OPTS
commands:
- name: Package the fruit
actions:
- workdir: '${CHE_PROJECTS_ROOT}/fruit-service'
type: exec
command: mvn package
component: maven-fruit
- name: Start fruit in devmode (hot deploy + debug)
actions:
- workdir: '${CHE_PROJECTS_ROOT}/fruit-service'
type: exec
command: 'mvn compile quarkus:dev'
component: maven-fruit
- name: Package the legume
actions:
- workdir: '${CHE_PROJECTS_ROOT}/legume-service'
type: exec
command: mvn package
component: maven-legumes
- name: Start legume in devmode (hot deploy + debug)
actions:
- workdir: '${CHE_PROJECTS_ROOT}/legume-service'
type: exec
command: 'mvn compile quarkus:dev -Ddebug=5015 -Dquarkus.http.port=8090'
component: maven-legumes
- name: Attach remote debugger fruit
actions:
- referenceContent: |
{
"version": "0.2.0",
"configurations": [
{
"type": "java",
"request": "attach",
"name": "Attach to Remote Quarkus App",
"hostName": "localhost",
"port": 5005
}
]
}
type: vscode-launch
- name: Attach remote debugger legumes
actions:
- referenceContent: |
{
"version": "0.2.0",
"configurations": [
{
"type": "java",
"request": "attach",
"name": "Attach to Remote Quarkus App",
"hostName": "localhost",
"port": 5015
}
]
}
type: vscode-launch