Skip to content

Instantly share code, notes, and snippets.

@svor
Created March 5, 2020 07:22
Show Gist options
  • Save svor/0fe771b1f1e853a98ee38442b75023bd to your computer and use it in GitHub Desktop.
Save svor/0fe771b1f1e853a98ee38442b75023bd to your computer and use it in GitHub Desktop.
---
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