Created
October 3, 2019 09:47
-
-
Save rhopp/ffdece76dbfa200eea8ecdcd8c2ea8a8 to your computer and use it in GitHub Desktop.
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
--- | |
apiVersion: 1.0.0 | |
metadata: | |
generateName: java-maven- | |
projects: | |
- | |
name: console-java-simple | |
source: | |
type: git | |
location: "https://github.com/rhopp/console-java-simple.git" | |
components: | |
- | |
type: chePlugin | |
id: redhat/java/latest | |
- | |
type: dockerimage | |
alias: maven | |
image: quay.io/eclipse/che-java11-maven:nightly | |
env: | |
- name: MAVEN_CONFIG | |
value: /home/user/.m2 | |
- 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 | |
-Duser.home=/home/user" | |
- 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 | |
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" | |
memoryLimit: 512Mi | |
mountSources: true | |
volumes: | |
- name: m2 | |
containerPath: /home/user/.m2 | |
commands: | |
- | |
name: maven build | |
actions: | |
- | |
type: exec | |
component: maven | |
command: "mvn clean install" | |
workdir: ${CHE_PROJECTS_ROOT}/console-java-simple | |
- | |
name: maven build and run | |
actions: | |
- | |
type: exec | |
component: maven | |
command: "mvn clean install && java -jar ./target/*.jar" | |
workdir: ${CHE_PROJECTS_ROOT}/console-java-simple |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment