Skip to content

Instantly share code, notes, and snippets.

@karstengresch
Last active July 3, 2021 16:51
Show Gist options
  • Save karstengresch/f9a5636a1139514864f4fbedc0126dde to your computer and use it in GitHub Desktop.
Save karstengresch/f9a5636a1139514864f4fbedc0126dde to your computer and use it in GitHub Desktop.
Quarkus Fork Getting Started devfile
apiVersion: 1.0.0
metadata:
generateName: quarkus-
projects:
- name: quarkus-quickstarts
source:
type: url
location: "https://github.com/karstengresch/quarkus-quickstarts.git"
components:
- type: chePlugin
id: redhat/quarkus-java11/latest
- type: dockerimage
alias: maven
image: 'registry.redhat.io/codeready-workspaces/plugin-java11-rhel8@sha256:e86be19ea5c4868f68188a46cec3f4131c1a18400f6800b27d5da92c95c2418b'
env:
- name: JAVA_OPTS
value: '-XX:MaxRAMPercentage=50.0 -XX:+UseParallelGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xms20m -Djava.security.egd=file:/dev/./urandom -Duser.home=/home/jboss'
- name: MAVEN_OPTS
value: $(JAVA_OPTS)
memoryLimit: 512Mi
mountSources: true
volumes:
- name: m2
containerPath: /home/jboss/.m2
endpoints:
- name: quarkus-development-server
port: 8080
- attributes:
path: /hello/greeting/che-user
name: hello-greeting-endpoint
port: 8080
- attributes:
public: 'false'
name: debug
port: 5005
- attributes:
public: 'false'
name: tests
port: 8081
commands:
- name: 1. Package the application
actions:
- type: exec
component: maven
command: mvn package
workdir: '${CHE_PROJECTS_ROOT}/quarkus-quickstarts/getting-started'
- name: 2. Start Quarkus in devmode (hot deploy + debug)
actions:
- type: exec
component: maven
command: 'mvn compile quarkus:dev -Dquarkus.http.host=0.0.0.0 -Dquarkus.live-reload.instrumentation=false'
workdir: '${CHE_PROJECTS_ROOT}/quarkus-quickstarts/getting-started'
- name: Attach remote debugger
actions:
- type: vscode-launch
referenceContent: |
{
"version": "0.2.0",
"configurations": [
{
"type": "java",
"request": "attach",
"name": "Attach to Remote Quarkus App",
"hostName": "localhost",
"port": 5005
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment