Created
March 5, 2020 07:22
-
-
Save svor/0fe771b1f1e853a98ee38442b75023bd 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-gradle- | |
projects: | |
- | |
name: console-java-simple | |
source: | |
type: git | |
location: "https://github.com/che-samples/console-java-simple.git" | |
branch: java1.11 | |
components: | |
- | |
type: chePlugin | |
id: redhat/java11/latest | |
- | |
type: dockerimage | |
alias: gradle | |
image: vsvydenko/che-java11-gradle:nightly | |
env: | |
- name: GRADLE_USER_HOME | |
value: /home/gradle/.gradle | |
- 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" | |
- name: HOME | |
value: /home/gradle | |
memoryLimit: 512Mi | |
volumes: | |
- name: gradle | |
containerPath: /home/gradle/.gradle | |
mountSources: true | |
commands: | |
- | |
name: gradle build | |
actions: | |
- | |
type: exec | |
component: gradle | |
command: "gradle build" | |
workdir: ${CHE_PROJECTS_ROOT}/console-java-simple | |
- | |
name: gradle run | |
actions: | |
- | |
type: exec | |
component: gradle | |
command: "gradle run" | |
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