Skip to content

Instantly share code, notes, and snippets.

@svor
Created September 26, 2023 14:40
Show Gist options
  • Save svor/c2df9b3fc8db73161c6809b63bc06099 to your computer and use it in GitHub Desktop.
Save svor/c2df9b3fc8db73161c6809b63bc06099 to your computer and use it in GitHub Desktop.
schemaVersion: 2.1.0
metadata:
name: java-quarkus
displayName: Quarkus Java
description: Java application using Quarkus and OpenJDK 17
icon: https://design.jboss.org/quarkus/logo/final/SVG/quarkus_icon_rgb_default.svg
tags:
- Java
- Quarkus
projectType: Quarkus
language: Java
version: 1.3.0
website: https://quarkus.io
starterProjects:
- name: community
zip:
location: https://code.quarkus.io/d?e=io.quarkus%3Aquarkus-resteasy&e=io.quarkus%3Aquarkus-micrometer&e=io.quarkus%3Aquarkus-smallrye-health&e=io.quarkus%3Aquarkus-openshift&cn=devfile
- name: redhat-product
zip:
location: https://code.quarkus.redhat.com/d?e=io.quarkus%3Aquarkus-resteasy&e=io.quarkus%3Aquarkus-smallrye-health&e=io.quarkus%3Aquarkus-openshift
components:
- name: tools
container:
image: quay.io/devfile/universal-developer-image:ubi8-latest
memoryLimit: 512Mi ## default app nowhere needs this but leaving room for expansion.
mountSources: true
volumeMounts:
- name: m2
path: /home/user/.m2
endpoints:
- name: http-quarkus
targetPort: 8080
- exposure: none
name: debug
targetPort: 5858
env:
- name: DEBUG_PORT
value: '5858'
- name: m2
volume:
size: 3Gi
commands:
- id: init-compile
exec:
component: tools
commandLine: 'mvn -Dmaven.repo.local=/home/user/.m2/repository compile'
workingDir: ${PROJECT_SOURCE}
- id: dev-run
exec:
component: tools
commandLine: 'mvn -Dmaven.repo.local=/home/user/.m2/repository quarkus:dev -Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager'
hotReloadCapable: true
group:
kind: run
isDefault: true
workingDir: ${PROJECT_SOURCE}
- id: dev-debug
exec:
component: tools
commandLine: 'mvn -Dmaven.repo.local=/home/user/.m2/repository quarkus:dev -Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager -Ddebug=${DEBUG_PORT}'
hotReloadCapable: true
group:
kind: debug
isDefault: true
workingDir: ${PROJECT_SOURCE}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment