This repository has been archived by the owner on Aug 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 115
/
devfile.yaml
89 lines (89 loc) · 2.72 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
---
apiVersion: 1.0.0
metadata:
generateName: apache-camel-springboot-
projects:
-
name: fuse-rest-http-booster
source:
type: git
location: "https://github.com/che-samples/fuse-rest-http-booster"
components:
-
type: chePlugin
id: redhat/vscode-xml/latest
-
type: chePlugin
id: redhat/vscode-apache-camel/latest
-
type: chePlugin
id: redhat/java8/latest
-
type: dockerimage
alias: maven
image: quay.io/eclipse/che-java8-maven:ce0526f
env:
- name: MAVEN_CONFIG
value: ""
- name: MAVEN_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"
- 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"
- name: JAVA_TOOL_OPTIONS
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"
volumes:
- name: m2
containerPath: "/home/user/.m2"
memoryLimit: 512Mi
endpoints:
- name: '8080-tcp'
port: 8080
- name: 'debug'
port: 5005
attributes:
public: 'false'
mountSources: true
commands:
-
name: build the project
actions:
- type: exec
component: maven
command: mvn clean install
workdir: ${CHE_PROJECTS_ROOT}/fuse-rest-http-booster
-
name: run the services
actions:
- type: exec
component: maven
command: mvn spring-boot:run -DskipTests
workdir: ${CHE_PROJECTS_ROOT}/fuse-rest-http-booster
-
name: run the services (debugging enabled)
actions:
- type: exec
component: maven
command: mvn spring-boot:run -DskipTests -Drun.jvmArguments="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"
workdir: ${CHE_PROJECTS_ROOT}/fuse-rest-http-booster
-
name: Debug remote java application
actions:
- type: vscode-launch
referenceContent: |
{
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Debug (Attach) - Remote",
"request": "attach",
"hostName": "localhost",
"port": 5005
}]
}