Created
September 18, 2019 08:04
-
-
Save slemeur/cefe0b99fc737ce2f0519263ed00d38f to your computer and use it in GitHub Desktop.
devfil-vertx
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: wksp-wsob | |
projects: | |
- name: java-web-vertx | |
source: | |
location: 'https://github.com/che-samples/web-java-vertx' | |
type: git | |
branch: master | |
components: | |
- id: redhat/java/latest | |
type: chePlugin | |
- mountSources: true | |
endpoints: | |
- name: 8080/tcp | |
port: 8080 | |
memoryLimit: 512Mi | |
type: dockerimage | |
volumes: | |
- name: m2 | |
containerPath: /home/user/.m2 | |
alias: maven | |
image: 'quay.io/eclipse/che-java8-maven:nightly' | |
env: | |
- 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: JAVA_OPTS | |
- value: $(JAVA_OPTS) | |
name: MAVEN_OPTS | |
apiVersion: 1.0.0 | |
commands: | |
- name: maven build | |
actions: | |
- workdir: '${CHE_PROJECTS_ROOT}/java-web-vertx' | |
type: exec | |
command: 'mvn -Duser.home=${HOME} clean install' | |
component: maven | |
- name: run app | |
actions: | |
- workdir: '${CHE_PROJECTS_ROOT}/java-web-vertx' | |
type: exec | |
command: > | |
JDBC_URL=jdbc:h2:/tmp/db \ | |
java -jar -Xdebug | |
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 \ | |
./target/*fat.jar | |
component: maven | |
- name: Debug remote java application | |
actions: | |
- referenceContent: | | |
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "java", | |
"name": "Debug (Attach) - Remote", | |
"request": "attach", | |
"hostName": "localhost", | |
"port": 5005 | |
}] | |
} | |
type: vscode-launch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment