Created
June 25, 2019 13:38
-
-
Save rhopp/b27e3d66c4478bc6a6560494b3bd612b 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
--- | |
specVersion: 0.0.1 | |
name: apache-camel-user-story-v3 | |
projects: | |
- name: spring-boot-camel | |
clonePath: spring-boot-camel | |
source: | |
type: git | |
location: https://github.com/bfitzpat/spring-boot-camel.git | |
components: | |
- | |
type: cheEditor | |
id: eclipse/che-theia/next | |
memoryLimit: 512Mi | |
- | |
type: chePlugin | |
id: camel-tooling/vscode-apache-camel/latest | |
memoryLimit: 512Mi | |
- | |
type: chePlugin | |
id: redhat/vscode-xml/latest | |
memoryLimit: 150Mi | |
- | |
type: chePlugin | |
id: redhat/java/latest | |
memoryLimit: 768Mi | |
- | |
type: dockerimage | |
alias: maven | |
image: maven:3.6.1-jdk-8 | |
command: ['sleep'] | |
args: ['infinity'] | |
env: | |
- name: MAVEN_CONFIG | |
value: "/home/user/.m2" | |
- name: MAVEN_OPTS | |
value: "-XX:MaxRAMPercentage=50.0 -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.0 -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.0 -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: PS1 | |
value: "$(echo ${0})\\$" | |
- name: HOME | |
value: "/home/user" | |
volumes: | |
- name: m2 | |
containerPath: "/home/user/.m2" | |
memoryLimit: 512Mi | |
endpoints: | |
- name: '8080/tcp' | |
port: 8080 | |
mountSources: true | |
commands: | |
- | |
name: build a docker image using fabric8 | |
actions: | |
- type: exec | |
component: maven | |
command: cd ${CHE_PROJECTS_ROOT}/spring-boot-camel && mvn clean package fabric8:build | |
- | |
name: run the services on openshift | |
actions: | |
- type: exec | |
component: maven | |
command: cd ${CHE_PROJECTS_ROOT}/spring-boot-camel && mvn clean -DskipTests fabric8:deploy -Popenshift |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment