-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdevfile.yaml
More file actions
97 lines (97 loc) · 2.68 KB
/
devfile.yaml
File metadata and controls
97 lines (97 loc) · 2.68 KB
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
92
93
94
95
96
97
commands:
- exec:
commandLine: mvn -Dmaven.repo.local=/home/user/.m2/repository compile
component: server
workingDir: $PROJECTS_ROOT
id: init-compile
- exec:
commandLine: mvn -Dmaven.repo.local=/home/user/.m2/repository quarkus:dev -Dquarkus.http.host=0.0.0.0
-Djava.util.logging.manager=org.jboss.logmanager.LogManager
component: server
group:
isDefault: true
kind: run
hotReloadCapable: true
workingDir: $PROJECTS_ROOT
id: dev-run
- exec:
commandLine: mvn -Dmaven.repo.local=/home/user/.m2/repository quarkus:dev -Dquarkus.http.host=0.0.0.0
-Djava.util.logging.manager=org.jboss.logmanager.LogManager -Ddebug=${DEBUG_PORT}
component: server
group:
isDefault: true
kind: debug
hotReloadCapable: true
workingDir: $PROJECTS_ROOT
id: dev-debug
components:
- container:
endpoints:
- name: http
targetPort: 8080
protocol: http
- name: 'debug'
targetPort: 5005
exposure: internal
env:
- name: MAVEN_OPTS
value: "-Xmx512m"
# odo image
# image: registry.access.redhat.com/ubi8/openjdk-11
# crw image
image: registry.redhat.io/codeready-workspaces/plugin-java11-rhel8:latest
memoryLimit: 768Mi
mountSources: true
volumeMounts:
- name: m2
path: /home/user/.m2
name: server
- container:
endpoints:
- name: productdb
targetPort: 3306
exposure: internal
env:
- name: MYSQL_DATABASE
value: productdb
- name: MYSQL_USER
value: productdb
- name: MYSQL_PASSWORD
value: Demo1234
image: registry.redhat.io/rhel8/mariadb-103:1
memoryLimit: 1024Mi
name: productdb
- name: m2
volume:
size: 3Gi
events:
postStart:
- init-compile
metadata:
description: Product Catalog Server API
displayName: Product Catalog Server
icon: https://design.jboss.org/quarkus/logo/final/SVG/quarkus_icon_rgb_default.svg
language: java
name: product-catalog-server
projectType: quarkus
tags:
- Java
- Quarkus
version: 1.1.0
website: https://quarkus.io
# Remove for odo
# projects:
# - name: product-catalog-server
# git:
# remotes:
# origin: "https://github.com/gnunn-gitops/product-catalog-server.git"
# checkoutFrom:
# revision: master
schemaVersion: 2.0.0
starterProjects:
- name: community
zip:
location: https://code.quarkus.io/d?e=io.quarkus%3Aquarkus-resteasy&e=io.quarkus%3Aquarkus-micrometer&e=io.quarkus%3Aquarkus-smallrye-health&e=io.quarkus%3Aquarkus-openshift&cn=devfile
- name: redhat-product
zip:
location: https://code.quarkus.redhat.com/d?e=io.quarkus%3Aquarkus-resteasy&e=io.quarkus%3Aquarkus-smallrye-health&e=io.quarkus%3Aquarkus-openshift