Created
September 19, 2019 10:38
-
-
Save AndrienkoAleksandr/bc16f67141c83b13834bf1bb1434f754 to your computer and use it in GitHub Desktop.
CompatibilityVolumeSolutionTest2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
metadata: | |
name: PersistedTestJava | |
projects: | |
- name: console-java-simple | |
source: | |
location: 'https://github.com/che-samples/console-java-simple.git' | |
type: git | |
branch: master | |
components: | |
- type: chePlugin | |
reference: >- | |
https://raw.githubusercontent.com/AndrienkoAleksandr/che-plugin-registry/master/v3/plugins/redhat/java/0.46.0/meta.yaml | |
- 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 | |
commands: | |
- name: maven build | |
actions: | |
- workdir: '${CHE_PROJECTS_ROOT}/console-java-simple' | |
type: exec | |
command: mvn clean install | |
component: maven | |
- name: maven build and run | |
actions: | |
- workdir: '${CHE_PROJECTS_ROOT}/console-java-simple' | |
type: exec | |
command: mvn clean install && java -jar ./target/*.jar | |
component: maven |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment