Skip to content

Commit

Permalink
Add quarkus devfile
Browse files Browse the repository at this point in the history
Signed-off-by: svor <vsvydenk@redhat.com>
  • Loading branch information
svor committed Dec 19, 2019
1 parent 74b4163 commit d90e549
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 1 deletion.
2 changes: 1 addition & 1 deletion arbitrary-users-patch/base_images
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ che-nodejs8-centos registry.centos.org/che-stacks/centos-nodejs
che-php-7 eclipse/php:7.1-che7
che-python-3.6 centos/python-36-centos7:1
che-python-3.7 python:3.7.4-slim
che-quarkus quay.io/quarkus/centos-quarkus-maven:19.2.1
che-quarkus quay.io/quarkus/centos-quarkus-maven:19.3.0-java8
che-rust-1.39 rust:1.39.0-slim
69 changes: 69 additions & 0 deletions devfiles/quarkus/devfile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
---
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/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-getting-started'
port: 8080
commands:
-
name: maven package
actions:
-
type: exec
component: maven
command: "mvn package"
workdir: ${CHE_PROJECTS_ROOT}/quarkus-quickstarts/getting-started
-
name: maven run in development mode
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
}
]
}
6 changes: 6 additions & 0 deletions devfiles/quarkus/meta.yaml
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

0 comments on commit d90e549

Please sign in to comment.