Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rm3l/236fcbb63dce9ac169a796fcc49acacc to your computer and use it in GitHub Desktop.
Save rm3l/236fcbb63dce9ac169a796fcc49acacc to your computer and use it in GitHub Desktop.
schemaVersion: 2.0.0
metadata:
name: java-quarkus
version: 1.1.0
website: https://quarkus.io
displayName: Quarkus Java
description: Quarkus with Java
icon: https://design.jboss.org/quarkus/logo/final/SVG/quarkus_icon_rgb_default.svg
tags: ['Java', 'Quarkus']
projectType: 'quarkus'
language: 'java'
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: registry.access.redhat.com/ubi8/openjdk-11
command: ["tail", "-f", "/dev/null"]
memoryLimit: 512Mi ## default app nowhere needs this but leaving room for expansion.
mountSources: true
volumeMounts:
- name: m2
path: /home/user/.m2
endpoints:
- name: '8080-http'
targetPort: 8080
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