1
+ apiVersion : 1.0.0
2
+ metadata :
3
+ name : spring-boot-http-booster
4
+ projects :
5
+ - name : spring-boot-http-booster
6
+ source :
7
+ location : ' https://github.com/snowdrop/spring-boot-http-booster'
8
+ type : git
9
+ branch : master
10
+ components :
11
+ - id : redhat/java8/latest
12
+ type : chePlugin
13
+ - id : redhat/dependency-analytics/latest
14
+ type : chePlugin
15
+ - type : dockerimage
16
+ alias : maven
17
+ image : registry.redhat.io/codeready-workspaces/stacks-java-rhel8:2.1
18
+ mountSources : true
19
+ memoryLimit : 768Mi
20
+ env :
21
+ - value : >-
22
+ -XX:MaxRAMPercentage=50.0 -XX:+UseParallelGC -XX:MinHeapFreeRatio=10
23
+ -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4
24
+ -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true
25
+ -Xms20m -Djava.security.egd=file:/dev/./urandom -Duser.home=/home/jboss
26
+ name: JAVA_OPTS
27
+ - value : $(JAVA_OPTS)
28
+ name : MAVEN_OPTS
29
+ endpoints :
30
+ - name : 8080-tcp
31
+ port : 8080
32
+ volumes :
33
+ - name : m2
34
+ containerPath : /home/jboss/.m2
35
+ commands :
36
+ - name : build
37
+ actions :
38
+ - workdir : ' ${PROJECTS_ROOT}/spring-boot-http-booster'
39
+ type : exec
40
+ command : >-
41
+ MAVEN_OPTS="-Xmx200m" && mvn -Duser.home=${HOME} -DskipTests clean
42
+ install
43
+ component : maven
44
+ - name : Debug remote java application
45
+ actions :
46
+ - referenceContent : |
47
+ {
48
+ "version": "0.2.0",
49
+ "configurations": [
50
+ {
51
+ "type": "java",
52
+ "name": "Debug (Attach) - Remote",
53
+ "request": "attach",
54
+ "hostName": "localhost",
55
+ "port": 8000
56
+ }]
57
+ }
58
+ type: vscode-launch
59
+ - name : run
60
+ actions :
61
+ - workdir : ' ${PROJECTS_ROOT}/spring-boot-http-booster'
62
+ type : exec
63
+ command : ' MAVEN_OPTS="-Xmx200m" && mvn -Duser.home=${HOME} spring-boot:run'
64
+ component : maven
65
+ - name : debug
66
+ actions :
67
+ - workdir : ' ${PROJECTS_ROOT}/spring-boot-http-booster'
68
+ type : exec
69
+ command : >-
70
+ mvn -Duser.home=${HOME} spring-boot:run -Drun.jvmArguments="-Xdebug
71
+ -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000"
72
+ component : maven
73
+ - name : test
74
+ actions :
75
+ - workdir : ' ${PROJECTS_ROOT}/spring-boot-http-booster'
76
+ type : exec
77
+ command : ' MAVEN_OPTS="-Xmx200m" && mvn -Duser.home=${HOME} verify'
78
+ component : maven
79
+ - name : dependency-analysis
80
+ actions :
81
+ - workdir : ' ${PROJECTS_ROOT}/spring-boot-http-booster'
82
+ type : exec
83
+ command : >-
84
+ ${HOME}/stack-analysis.sh -f
85
+ ${PROJECTS_ROOT}/spring-boot-http-booster/pom.xml -p
86
+ ${PROJECTS_ROOT}/spring-boot-http-booster
87
+ component : maven
88
+ - name : deploy to OpenShift
89
+ actions :
90
+ - workdir : ' ${PROJECTS_ROOT}/spring-boot-http-booster'
91
+ type : exec
92
+ command : ' mvn fabric8:deploy -Popenshift -DskipTests'
93
+ component : maven
0 commit comments