Create Devfile

This commit is contained in:
Andrew Pitt 2019-09-24 12:48:35 -04:00 committed by GitHub
parent 2d1176c5be
commit efbc3f15cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

41
Devfile Normal file
View file

@ -0,0 +1,41 @@
metadata:
name: pitt-boot
projects:
- name: spring-boot-java
source:
location: 'https://github.com/pittar/spring-petclinic'
type: git
branch: master
components:
- id: redhat/java/latest
type: chePlugin
- 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: /home/user/.m2
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