diff --git a/devfiles/quarkus/devfile.yaml b/devfiles/quarkus/devfile.yaml new file mode 100644 index 000000000..502f65e0e --- /dev/null +++ b/devfiles/quarkus/devfile.yaml @@ -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 + } + ] + } diff --git a/devfiles/quarkus/meta.yaml b/devfiles/quarkus/meta.yaml new file mode 100644 index 000000000..970fffb57 --- /dev/null +++ b/devfiles/quarkus/meta.yaml @@ -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