-
Notifications
You must be signed in to change notification settings - Fork 5
/
devfile.yaml
53 lines (53 loc) · 1.4 KB
/
devfile.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
schemaVersion: 2.1.0
metadata:
name: camel-demo
version: 1.1.0
attributes:
alpha.build-context: .
alpha.build-dockerfile: Dockerfile
displayName: Camel Demo
description: Camel Demo based on Quarkus
projectType: "quarkus"
language: "java"
components:
- name: buildguidance
container:
image: registry.redhat.io/codeready-workspaces/plugin-java11-rhel8@sha256:cff9e47f83c6140d442721ed4d78e029a55f98bdca8efffbba8513656a1b28a7
memoryLimit: 1024Mi
endpoints:
- name: http-8081
targetPort: 8081
- name: tools
attributes:
tool: console-import
container:
image: registry.redhat.io/codeready-workspaces/plugin-java11-rhel8@sha256:cff9e47f83c6140d442721ed4d78e029a55f98bdca8efffbba8513656a1b28a7
memoryLimit: 1512Mi
mountSources: true
volumeMounts:
- name: m2
path: /home/user/.m2
endpoints:
- name: '8080-http'
targetPort: 8080
- name: m2
volume:
size: 3Gi
commands:
- id: init-compile
exec:
component: tools
commandLine: "mvn compile"
workingDir: $PROJECTS_ROOT
- id: dev-run
exec:
component: tools
commandLine: "mvn quarkus:dev -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
hotReloadCapable: true
group:
kind: run
isDefault: true
workingDir: $PROJECTS_ROOT
events:
postStart:
- init-compile