forked from che-samples/console-java-simple
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevfile.yaml
More file actions
70 lines (70 loc) · 2.31 KB
/
Copy pathdevfile.yaml
File metadata and controls
70 lines (70 loc) · 2.31 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
metadata:
name: java-maven-vr5vq
projects:
- name: console-java-simple
source:
location: 'https://github.com/sblumenstock-doubleSlash/console-java-simple.git'
type: git
branch: java1.11
components:
- id: redhat/java11/latest
type: chePlugin
- endpoints:
- name: ideas-mongodb
port: 27017
attributes:
discoverable: 'true'
public: 'false'
memoryLimit: 300Mi
type: dockerimage
volumes:
- name: mongodb_data
containerPath: /var/lib/mongodb/data
alias: mongo
image: docker.io/centos/mongodb-36-centos7
env:
- value: user
name: MONGODB_USER
- value: password
name: MONGODB_PASSWORD
- value: ideas
name: MONGODB_DATABASE
- value: password
name: MONGODB_ADMIN_PASSWORD
- mountSources: true
memoryLimit: 512Mi
type: dockerimage
volumes:
- name: m2
containerPath: /home/user/.m2
alias: maven
image: 'quay.io/eclipse/che-java11-maven:nightly'
env:
- value: ''
name: MAVEN_CONFIG
- value: >-
-XX:MaxRAMPercentage=50 -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: >-
-XX:MaxRAMPercentage=50 -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 -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
apiVersion: 1.0.0
commands:
- name: maven build and run
actions:
- workdir: '${CHE_PROJECTS_ROOT}/console-java-simple'
type: exec
command: mvn clean install && java -jar ./target/*dependencies.jar
component: maven