-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add quarkus devfile Signed-off-by: svor <vsvydenk@redhat.com>
- Loading branch information
Showing
2 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
--- | ||
apiVersion: 1.0.0 | ||
metadata: | ||
generateName: quarkus- | ||
projects: | ||
- | ||
name: quarkus-quickstarts | ||
source: | ||
type: git | ||
location: "https://github.com/quarkusio/quarkus-quickstarts.git" | ||
sparseCheckoutDir: /getting-started/ | ||
components: | ||
- | ||
type: chePlugin | ||
id: redhat/quarkus-java8/latest | ||
- | ||
type: dockerimage | ||
alias: maven | ||
image: quay.io/eclipse/che-quarkus:nightly | ||
env: | ||
- 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 | ||
-Duser.home=/home/user" | ||
- name: MAVEN_OPTS | ||
value: $(JAVA_OPTS) | ||
memoryLimit: 512Mi | ||
mountSources: true | ||
volumes: | ||
- name: m2 | ||
containerPath: /home/user/.m2 | ||
endpoints: | ||
- name: 'quarkus-development-server' | ||
port: 8080 | ||
- name: 'hello-greeting-endpoint' | ||
port: 8080 | ||
attributes: | ||
path: /hello/greeting/che-user | ||
commands: | ||
- | ||
name: Package the application | ||
actions: | ||
- | ||
type: exec | ||
component: maven | ||
command: "mvn package" | ||
workdir: ${CHE_PROJECTS_ROOT}/quarkus-quickstarts/getting-started | ||
- | ||
name: Start development server | ||
actions: | ||
- | ||
type: exec | ||
component: maven | ||
command: "mvn compile quarkus:dev" | ||
workdir: ${CHE_PROJECTS_ROOT}/quarkus-quickstarts/getting-started | ||
- | ||
name: Attach remote debugger | ||
actions: | ||
- type: vscode-launch | ||
referenceContent: | | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "java", | ||
"request": "attach", | ||
"name": "Attach to Remote Quarkus App", | ||
"hostName": "localhost", | ||
"port": 5005 | ||
} | ||
] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
displayName: Quarkus Tools | ||
description: Quarkus Tools with OpenJDK 8 and Maven 3.6.0 | ||
tags: ["Java", "Quarkus", "OpenJDK", "Maven", "Debian"] | ||
icon: https://www.eclipse.org/che/images/logo-eclipseche.svg | ||
globalMemoryLimit: 2674Mi |