-
Notifications
You must be signed in to change notification settings - Fork 0
/
devfile.yaml
91 lines (85 loc) · 2.14 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
schemaVersion: 2.2.0
metadata:
name: octo-happiness
version: 1.2.1
provider: Red Hat
supportUrl: https://github.com/devfile-samples/devfile-support#support-information
icon: https://design.jboss.org/quarkus/logo/final/SVG/quarkus_icon_rgb_default.svg
website: https://quarkus.io
displayName: Quarkus Java
description: Quarkus with Java
tags:
- Java
- Quarkus
projectType: Quarkus
language: Java
attributes:
alpha.dockerimage-port: 8081
parent:
id: octo-happiness
registryUrl: 'https://registry.devfile.io'
components:
- name: tools
container:
image: quay.io/devfile/universal-developer-image:latest
env:
- name: QUARKUS_HTTP_HOST
value: 0.0.0.0
endpoints:
- exposure: none
name: debug
protocol: tcp
targetPort: 5005
- exposure: public
name: endpoint
protocol: http
targetPort: 8080
volumeMounts:
- name: m2
path: /home/user/.m2
memoryLimit: 4.7G
mountSources: true
- name: ubi-minimal
container:
image: registry.access.redhat.com/ubi8/ubi-minimal
command: ['tail']
args: ['-f', '/dev/null']
memoryLimit: 64M
mountSources: true
- name: m2
volume:
size: 1G
commands:
- id: package
exec:
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: "mvn package"
group:
kind: build
isDefault: true
- id: package-native
exec:
label: "Package Native"
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: "mvn package -Dnative -Dmaven.test.skip -Dquarkus.native.native-image-xmx=2G"
group:
kind: build
- id: start-dev
exec:
label: "Start Development mode (Hot reload + debug)"
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: "mvn compile quarkus:dev"
group:
kind: run
isDefault: true
- id: start-native
exec:
label: "Start Native"
component: ubi-minimal
workingDir: ${PROJECT_SOURCE}/target
commandLine: "./*-SNAPSHOT-runner"
group:
kind: run