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
70 lines (70 loc) · 2.27 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
---
apiVersion: 1.0.0
metadata:
name: apache-camel-springboot
projects:
-
name: fuse-rest-http-booster
source:
type: git
location: "https://github.com/jboss-fuse/fuse-rest-http-booster"
components:
-
type: chePlugin
id: redhat/vscode-xml/latest
memoryLimit: 128Mi
-
type: chePlugin
id: camel-tooling/vscode-apache-camel/latest
-
type: chePlugin
id: redhat/java/latest
-
type: dockerimage
alias: maven
image: quay.io/eclipse/che-java8-maven:nightly
env:
- name: MAVEN_CONFIG
value: "/home/user/.m2"
- 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
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 and debug the services
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