Created
March 19, 2021 17:27
-
-
Save luszczynski/88d9d6ba9a8e19d01abff640070fb6d4 to your computer and use it in GitHub Desktop.
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
apiVersion: 1.0.0 | |
metadata: | |
name: user1-workspace | |
components: | |
- id: redhat/quarkus-java11/latest | |
type: chePlugin | |
- mountSources: true | |
endpoints: | |
- attributes: | |
public: 'true' | |
protocol: http | |
discoverable: 'true' | |
name: web-user1 | |
port: 8080 | |
- attributes: | |
public: 'false' | |
protocol: jdwp | |
discoverable: 'false' | |
name: debug-user1 | |
port: 5005 | |
memoryLimit: 4Gi | |
type: dockerimage | |
alias: quarkus-tools | |
image: 'image-registry.openshift-image-registry.svc:5000/openshift/quarkus-stack:2.5' | |
env: | |
- value: /home/jboss/.m2 | |
name: MAVEN_CONFIG | |
- value: '-Xmx4G -Xss128M -XX:MetaspaceSize=1G -XX:MaxMetaspaceSize=2G -XX:+CMSClassUnloadingEnabled' | |
name: MAVEN_OPTS | |
commands: | |
- name: Login to OpenShift | |
actions: | |
- workdir: '${CHE_PROJECTS_ROOT}' | |
type: exec | |
command: 'oc login https://$KUBERNETES_SERVICE_HOST:$KUBERNETES_SERVICE_PORT --insecure-skip-tls-verify=true' | |
component: quarkus-tools | |
- name: Run Tests | |
actions: | |
- workdir: '${CHE_PROJECTS_ROOT}' | |
type: exec | |
command: 'mvn verify -f ${CHE_PROJECTS_ROOT}/quarkus-workshop-m1m2-labs' | |
component: quarkus-tools | |
- name: Start Live Coding | |
actions: | |
- workdir: '${CHE_PROJECTS_ROOT}' | |
type: exec | |
command: 'mvn clean compile quarkus:dev -f ${CHE_PROJECTS_ROOT}/quarkus-workshop-m1m2-labs' | |
component: quarkus-tools | |
- name: Package App for OpenShift | |
actions: | |
- workdir: '${CHE_PROJECTS_ROOT}' | |
type: exec | |
command: 'mvn package -DuberJar=true -DskipTests -f ${CHE_PROJECTS_ROOT}/quarkus-workshop-m1m2-labs' | |
component: quarkus-tools | |
- name: Build Native App | |
actions: | |
- workdir: '${CHE_PROJECTS_ROOT}' | |
type: exec | |
command: 'mvn package -Pnative -DskipTests -Dquarkus.package.uber-jar=false -f ${CHE_PROJECTS_ROOT}/quarkus-workshop-m1m2-labs' | |
component: quarkus-tools | |
- name: Start Debugger on 5005 | |
actions: | |
- referenceContent: | | |
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "java", | |
"request": "attach", | |
"name": "Attach to App", | |
"hostName": "localhost", | |
"port": 5005 | |
} | |
] | |
} | |
type: vscode-launch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment