Last active
June 25, 2020 09:08
-
-
Save karstengresch/0f7abc58205f4af9e902620ac1979949 to your computer and use it in GitHub Desktop.
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: quarkus-commandmode-u0k0p | |
projects: | |
- name: quarkus-quickstarts | |
source: | |
location: 'https://github.com/sunix/quarkus-quickstarts.git' | |
type: git | |
sparseCheckoutDir: getting-started-command-mode | |
branch: commandmode | |
attributes: | |
persistVolumes: 'false' | |
components: | |
- id: redhat/quarkus-java8/latest | |
type: chePlugin | |
- mountSources: true | |
memoryLimit: 4Gi | |
type: dockerimage | |
volumes: | |
- name: m2 | |
containerPath: /home/user/.m2 | |
image: 'quay.io/eclipse/che-quarkus:nightly' | |
alias: centos-quarkus-maven | |
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 | |
- mountSources: true | |
command: | |
- tail | |
args: | |
- '-f' | |
- /dev/null | |
memoryLimit: 32M | |
type: dockerimage | |
image: 'quay.io/quarkus/ubi-quarkus-native-image:19.2.0.1' | |
alias: ubi-quarkus-native-image | |
apiVersion: 1.0.0 | |
commands: | |
- name: Package | |
actions: | |
- workdir: '${CHE_PROJECTS_ROOT}/quarkus-quickstarts/getting-started-command-mode' | |
type: exec | |
command: ./mvnw package | |
component: centos-quarkus-maven | |
- name: Run Dev mode (Hot reload + debug) | |
actions: | |
- workdir: '${CHE_PROJECTS_ROOT}/quarkus-quickstarts/getting-started-command-mode' | |
type: exec | |
command: >- | |
echo Enter the command arguments; read arguments; set -o xtrace; | |
./mvnw compile quarkus:dev -Dquarkus.args="$arguments" | |
component: centos-quarkus-maven | |
- name: Package Native | |
actions: | |
- workdir: '${CHE_PROJECTS_ROOT}/quarkus-quickstarts/getting-started-command-mode' | |
type: exec | |
command: ./mvnw package -Dnative | |
component: centos-quarkus-maven | |
- name: Run Native | |
actions: | |
- workdir: >- | |
${CHE_PROJECTS_ROOT}/quarkus-quickstarts/getting-started-command-mode/target | |
type: exec | |
command: >- | |
echo Enter the command arguments; read arguments; set -o xtrace; | |
./getting-started-command-mode-1.0-SNAPSHOT-runner $arguments | |
component: ubi-quarkus-native-image | |
- name: Attach remote debugger | |
actions: | |
- referenceContent: |- | |
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "java", | |
"request": "attach", | |
"name": "Attach to Remote Quarkus App", | |
"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