Skip to content

Instantly share code, notes, and snippets.

@ibuziuk
Last active April 17, 2024 12:23
Show Gist options
  • Save ibuziuk/6c6ae77f5e66d5d388f6784a3645f92d to your computer and use it in GitHub Desktop.
Save ibuziuk/6c6ae77f5e66d5d388f6784a3645f92d to your computer and use it in GitHub Desktop.
schemaVersion: 2.2.2
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.4.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&j=17
- 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&j=17
components:
- name: tools
container:
image: registry.access.redhat.com/ubi8/openjdk-17:1.18-2
args: ['tail', '-f', '/dev/null']
memoryLimit: 1024Mi ## default app nowhere needs this but leaving room for expansion.
mountSources: true
volumeMounts:
- name: m2
path: /home/user/.m2
endpoints:
- name: https-quarkus
targetPort: 8080
protocol: https
attributes:
urlRewriteSupported: 'true'
- 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}
events:
postStart:
- init-compile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment