Created
February 19, 2020 16:08
-
-
Save svor/ef27902b78042173de0a34995b51a772 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
metadata: | |
name: wksp-4fjj | |
projects: | |
- name: console-java-simple | |
source: | |
location: 'https://github.com/che-samples/console-java-simple.git' | |
type: git | |
branch: java1.11 | |
attributes: | |
persistVolumes: 'false' | |
components: | |
- id: redhat/java11/latest | |
type: chePlugin | |
preferences: | |
java.jdt.ls.vmargs: >- | |
-noverify -XX:+UseStringDeduplication -XX:MinRAMPercentage=60.0 | |
-XX:MaxRAMPercentage=90.0 | |
- mountSources: true | |
memoryLimit: 512Mi | |
type: dockerimage | |
volumes: | |
- name: gradle | |
containerPath: /home/gradle/.gradle | |
alias: gradle | |
image: 'quay.io/eclipse/che-java11-gradle:nightly' | |
env: | |
- value: /home/gradle/.gradle | |
name: GRADLE_USER_HOME | |
- 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 | |
- value: /home/gradle | |
name: HOME | |
apiVersion: 1.0.0 | |
commands: | |
- name: gradle build | |
actions: | |
- workdir: '${CHE_PROJECTS_ROOT}/console-java-simple' | |
type: exec | |
command: gradle build | |
component: gradle | |
- name: gradle run | |
actions: | |
- workdir: '${CHE_PROJECTS_ROOT}/console-java-simple' | |
type: exec | |
command: gradle run | |
component: gradle |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment