-
Notifications
You must be signed in to change notification settings - Fork 44
/
devfile.yaml
97 lines (93 loc) · 2.44 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
92
93
94
95
96
97
schemaVersion: 2.1.0
metadata:
name: openshift-quickstart
version: 1.0.0
description: OpenShift Quickstart Apps
projectType: springboot
language: Java
provider: Red Hat
tags: [ 'Java', 'spring' ]
displayName: OpenShift Quickstart Apps
icon: https://raw.githubusercontent.com/devfile-samples/devfile-stack-icons/main/spring.svg
components:
- name: tools
container:
image: registry.redhat.io/devspaces/udi-rhel8@sha256:7e942155ebd808256e34a9411b85e41ae41d771353146cf6c15ed0b6bd4caacd
env:
- name: DEBUG_PORT
value: "5858"
- name: POSTGRES_DB
value: "sampledb"
- name: POSTGRES_USER
value: "spring"
- name: POSTGRES_PASSWORD
value: "spring123"
endpoints:
- exposure: none
name: debug
protocol: tcp
targetPort: 5858
- exposure: public
name: http-endpoint
protocol: https
targetPort: 8080
volumeMounts:
- name: m2
path: /home/user/.m2
cpuLimit: '2'
cpuRequest: '1'
memoryLimit: 8G
memoryRequest: 2G
mountSources: true
- name: postgresql
container:
image: registry.redhat.io/rhel9/postgresql-15
env:
- name: POSTGRESQL_USER
value: spring
- name: POSTGRESQL_PASSWORD
value: spring123
- name: POSTGRESQL_DATABASE
value: sampledb
endpoints:
- name: postgresql
exposure: internal
targetPort: 5432
attributes:
discoverable: 'true'
memoryLimit: 512Mi
mountSources: true
volumeMounts:
- name: postgresql-storage
path: /var/lib/mongodb/data
- name: postgres
openshift:
uri: deployment.yaml
- name: m2
volume:
size: 1G
- name: postgresql-storage
volume:
size: 256Mi
commands:
- id: 1-package
exec:
label: 1. Package the application
component: tools
workingDir: ${PROJECTS_ROOT}/openshift-quickstart/basic-with-db/person-app
commandLine: mvn package
group:
kind: build
isDefault: true
- id: 2-startdev
exec:
label: 2. Start Development mod
component: tools
workingDir: ${PROJECTS_ROOT}/quarkus-quickstarts/basic-with-db/person-app
commandLine: mvn compile spring-boot:run
group:
kind: run
isDefault: true
- id: 3-deploy
apply:
component: postgres