Skip to content

Instantly share code, notes, and snippets.

@kadel
Created June 3, 2021 12:57
Show Gist options
  • Save kadel/97d579f660882b4b28c76233f6c4f939 to your computer and use it in GitHub Desktop.
Save kadel/97d579f660882b4b28c76233f6c4f939 to your computer and use it in GitHub Desktop.
quarkus remote dev mode with odo
schemaVersion: 2.0.0
metadata:
name: java-quarkus-remotedev
version: 1.1.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/eclipse/che-quarkus:nightly
memoryLimit: 1Gi
mountSources: true
env:
- name: QUARKUS_LAUNCH_DEVMODE
value: "true"
volumeMounts:
- name: m2
path: /home/user/.m2
endpoints:
- name: '8080-http'
targetPort: 8080
- name: m2
volume:
size: 3Gi
commands:
- id: dev-run
attributes:
"dev.odo.push.path:target/quarkus-app/": "target/quarkus-app/"
exec:
component: tools
commandLine: "java -jar target/quarkus-app/quarkus-run.jar -Dquarkus.http.host=0.0.0.0"
hotReloadCapable: true
group:
kind: run
isDefault: true
workingDir: $PROJECTS_ROOT
- id: dev-debug
exec:
component: tools
commandLine: "java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=${DEBUG_PORT},suspend=n -jar target/quarkus-app/quarkus-run.jar -Dquarkus.http.host=0.0.0.0"
hotReloadCapable: true
group:
kind: debug
isDefault: true
workingDir: $PROJECTS_ROOT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment