-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdevfile.yaml
More file actions
46 lines (46 loc) · 1.37 KB
/
devfile.yaml
File metadata and controls
46 lines (46 loc) · 1.37 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
apiVersion: 1.0.0
metadata:
generateName: appdev-surveyapi-
projects:
- name: spring-rest-surveygroups
source:
location: 'https://github.com/redhat-appdev-practice/spring-rest-surveygroups.git'
type: git
branch: master
components:
- id: redhat/java8/latest
type: chePlugin
- image: 'registry.redhat.io/codeready-workspaces/stacks-java-rhel8:2.0'
mountSources: true
memoryLimit: 512Mi
type: dockerimage
volumes:
- name: m2
containerPath: /home/jboss/.m2
endpoints:
- name: 8080/tcp
port: 8080
alias: maven
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: maven build
actions:
- workdir: '${CHE_PROJECTS_ROOT}/spring-rest-surveygroups'
type: exec
command: mvn clean package
component: maven
- name: maven build and run
actions:
- workdir: '${CHE_PROJECTS_ROOT}/spring-rest-surveygroups'
type: exec
command: mvn spring-boot:run -Dspring-boot.run.profiles=local
component: maven