Created
April 6, 2022 15:57
-
-
Save rm3l/236fcbb63dce9ac169a796fcc49acacc to your computer and use it in GitHub Desktop.
Devfile for reproducing issue reported in https://github.com/redhat-developer/odo/issues/5620. Original issue: https://github.com/devfile/registry/pull/102#issuecomment-1077744174
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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