Skip to content

Instantly share code, notes, and snippets.

@kadel
Created July 28, 2020 10:04
Show Gist options
  • Select an option

  • Save kadel/657cf68258c68d68ca39bd4142327b05 to your computer and use it in GitHub Desktop.

Select an option

Save kadel/657cf68258c68d68ca39bd4142327b05 to your computer and use it in GitHub Desktop.

Revisions

  1. kadel created this gist Jul 28, 2020.
    44 changes: 44 additions & 0 deletions devfile.yaml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,44 @@
    schemaVersion: 2.0.0
    metadata:
    name: java-quarkus
    version: 1.0.0
    website: https://quarkus.io
    projects:
    - name: quarkus-ex
    git:
    location: https://github.com/odo-devfiles/quarkus-ex
    components:
    - container:
    name: tools
    image: quay.io/eclipse/che-quarkus:nightly
    memoryLimit: 1512Mi
    mountSources: true
    volumeMounts:
    - name: m2
    path: /home/user/.m2
    endpoints:
    - name: '8080/http'
    targetPort: 8080
    - volume:
    name: m2
    size: 3Gi
    commands:
    - exec:
    id: init-compile
    component: tools
    commandLine: "mvn compile"
    workingDir: $CHE_PROJECTS_ROOT/quarkus-ex
    - exec:
    id: dev-run
    component: tools
    commandLine: "mvn quarkus:dev"
    attributes:
    restart: "false"
    group:
    kind: run
    isDefault: true
    workingDir: $CHE_PROJECTS_ROOT/quarkus-ex

    events:
    postStart:
    - init-compile