mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 23:05:50 +00:00
Update devfile.yaml
This commit is contained in:
parent
0e3f589bc7
commit
3949255bb3
1 changed files with 65 additions and 30 deletions
95
devfile.yaml
95
devfile.yaml
|
@ -1,59 +1,94 @@
|
||||||
metadata:
|
metadata:
|
||||||
name: pitt-boot
|
name: wksp-v8y1
|
||||||
projects:
|
projects:
|
||||||
- name: spring-boot-java
|
- name: spring-petclinic
|
||||||
source:
|
source:
|
||||||
location: 'git@github.com:pittar/spring-petclinic.git'
|
location: 'https://github.com/pittar/spring-petclinic'
|
||||||
type: git
|
type: git
|
||||||
branch: master
|
branch: master
|
||||||
components:
|
components:
|
||||||
- id: redhat/java/latest
|
- id: redhat/java8/latest
|
||||||
|
type: chePlugin
|
||||||
|
- id: redhat/dependency-analytics/latest
|
||||||
type: chePlugin
|
type: chePlugin
|
||||||
- mountSources: true
|
- mountSources: true
|
||||||
endpoints:
|
endpoints:
|
||||||
- name: 8080/tcp
|
- name: 8080/tcp
|
||||||
port: 8080
|
port: 8080
|
||||||
memoryLimit: 1Gi
|
memoryLimit: 768Mi
|
||||||
type: dockerimage
|
type: dockerimage
|
||||||
volumes:
|
volumes:
|
||||||
- name: m2
|
- name: m2
|
||||||
containerPath: /home/user/.m2
|
containerPath: /home/jboss/.m2
|
||||||
alias: maven
|
alias: maven
|
||||||
image: 'quay.io/eclipse/che-java8-maven:7.4.0'
|
image: 'registry.redhat.io/codeready-workspaces/stacks-java-rhel8:2.0'
|
||||||
env:
|
env:
|
||||||
- value: /home/user/.m2
|
|
||||||
name: MAVEN_CONFIG
|
|
||||||
- value: >-
|
- value: >-
|
||||||
-XX:MaxRAMPercentage=50 -XX:+UseParallelGC -XX:MinHeapFreeRatio=10
|
-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/user
|
|
||||||
name: MAVEN_OPTS
|
|
||||||
- value: >-
|
|
||||||
-XX:MaxRAMPercentage=50 -XX:+UseParallelGC -XX:MinHeapFreeRatio=10
|
|
||||||
-XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4
|
-XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4
|
||||||
-XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true
|
-XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true
|
||||||
-Xms20m -Djava.security.egd=file:/dev/./urandom
|
-Xms20m -Djava.security.egd=file:/dev/./urandom
|
||||||
|
-Duser.home=/home/jboss
|
||||||
name: JAVA_OPTS
|
name: JAVA_OPTS
|
||||||
- value: >-
|
- value: $(JAVA_OPTS)
|
||||||
-XX:MaxRAMPercentage=50 -XX:+UseParallelGC -XX:MinHeapFreeRatio=10
|
name: MAVEN_OPTS
|
||||||
-XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4
|
|
||||||
-XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true
|
|
||||||
-Xms20m -Djava.security.egd=file:/dev/./urandom
|
|
||||||
name: JAVA_TOOL_OPTIONS
|
|
||||||
- id: redhat/dependency-analytics/latest
|
|
||||||
type: chePlugin
|
|
||||||
apiVersion: 1.0.0
|
apiVersion: 1.0.0
|
||||||
commands:
|
commands:
|
||||||
- name: maven build
|
- name: build
|
||||||
actions:
|
actions:
|
||||||
- workdir: '${CHE_PROJECTS_ROOT}/spring-boot-java'
|
- workdir: '${CHE_PROJECTS_ROOT}/spring-petclinic'
|
||||||
type: exec
|
type: exec
|
||||||
command: mvn clean install
|
command: >-
|
||||||
|
MAVEN_OPTS="-Xmx200m" && mvn -Duser.home=${HOME} -DskipTests clean
|
||||||
|
install
|
||||||
component: maven
|
component: maven
|
||||||
- name: maven build and run
|
- name: Debug remote java application
|
||||||
actions:
|
actions:
|
||||||
- workdir: '${CHE_PROJECTS_ROOT}/spring-boot-java'
|
- referenceContent: |
|
||||||
|
{
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"type": "java",
|
||||||
|
"name": "Debug (Attach) - Remote",
|
||||||
|
"request": "attach",
|
||||||
|
"hostName": "localhost",
|
||||||
|
"port": 8000
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
type: vscode-launch
|
||||||
|
- name: run
|
||||||
|
actions:
|
||||||
|
- workdir: '${CHE_PROJECTS_ROOT}/spring-petclinic'
|
||||||
type: exec
|
type: exec
|
||||||
command: mvn clean install && java -jar ./target/*.jar
|
command: 'MAVEN_OPTS="-Xmx200m" && mvn -Duser.home=${HOME} spring-boot:run'
|
||||||
|
component: maven
|
||||||
|
- name: debug
|
||||||
|
actions:
|
||||||
|
- workdir: '${CHE_PROJECTS_ROOT}/spring-petclinic'
|
||||||
|
type: exec
|
||||||
|
command: >-
|
||||||
|
mvn -Duser.home=${HOME} spring-boot:run -Drun.jvmArguments="-Xdebug
|
||||||
|
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000"
|
||||||
|
component: maven
|
||||||
|
- name: test
|
||||||
|
actions:
|
||||||
|
- workdir: '${CHE_PROJECTS_ROOT}/spring-petclinic'
|
||||||
|
type: exec
|
||||||
|
command: 'MAVEN_OPTS="-Xmx200m" && mvn -Duser.home=${HOME} verify'
|
||||||
|
component: maven
|
||||||
|
- name: dependency-analysis
|
||||||
|
actions:
|
||||||
|
- workdir: '${CHE_PROJECTS_ROOT}/spring-petclinic'
|
||||||
|
type: exec
|
||||||
|
command: >-
|
||||||
|
${HOME}/stack-analysis.sh -f
|
||||||
|
${CHE_PROJECTS_ROOT}/spring-petclinic/pom.xml -p
|
||||||
|
${CHE_PROJECTS_ROOT}/spring-petclinic
|
||||||
|
component: maven
|
||||||
|
- name: deploy to OpenShift
|
||||||
|
actions:
|
||||||
|
- workdir: '${CHE_PROJECTS_ROOT}/spring-petclinic'
|
||||||
|
type: exec
|
||||||
|
command: 'mvn fabric8:deploy -Popenshift -DskipTests'
|
||||||
component: maven
|
component: maven
|
||||||
|
|
Loading…
Reference in a new issue