Created
November 27, 2019 13:49
-
-
Save slemeur/7d48fc1ed67ef68696e41d28f00e7cfa to your computer and use it in GitHub Desktop.
haskell-test
This file contains 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: haskell | |
projects: | |
- name: console-java-simple | |
source: | |
location: 'https://github.com/che-samples/console-java-simple.git' | |
type: git | |
branch: java1.11 | |
- name: transient | |
source: | |
location: 'http://github.com/transient-haskell/transient' | |
type: git | |
- name: transient-universe | |
source: | |
location: 'http://github.com/transient-haskell/transient-universe' | |
type: git | |
attributes: | |
persistVolumes: 'false' | |
components: | |
- id: redhat/java11/latest | |
type: chePlugin | |
- mountSources: true | |
memoryLimit: 512Mi | |
type: dockerimage | |
volumes: | |
- name: m2 | |
containerPath: /home/user/.m2 | |
alias: maven | |
image: 'haskell' | |
command: ['sleep', 'infinity'] | |
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