-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdevfile.yaml
66 lines (65 loc) · 1.65 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
schemaVersion: 2.1.0
metadata:
name: fruit-catalog
components:
- name: quarkus
container:
image: registry.redhat.io/devspaces/udi-rhel8:3.5
env:
- name: QUARKUS_HTTP_HOST
value: 0.0.0.0
endpoints:
- exposure: none
name: debug
protocol: tcp
targetPort: 5005
- exposure: public
name: fruit-endpoint
protocol: https
targetPort: 8080
path: /index.html
volumeMounts:
- name: m2
path: /home/user/.m2
memoryLimit: 4G
cpuLimit: 4000m
mountSources: true
- name: m2
volume:
size: 1G
- name: db-pg
container:
image: quay.io/centos7/postgresql-13-centos7@sha256:994f5c622e2913bda1c4a7fa3b0c7e7f75e7caa3ac66ff1ed70ccfe65c40dd75
endpoints:
- name: postgres
targetPort: 5432
exposure: public
env:
- value: quarkus_test
name: POSTGRESQL_USER
- value: quarkus_test
name: POSTGRESQL_PASSWORD
- value: quarkus_test
name: POSTGRESQL_DATABASE
- name: PGDATA
value: /tmp/pgdata
memoryLimit: 512Mi
cpuLimit: 2000m
commands:
- id: 1-package
exec:
component: quarkus
workingDir: ${PROJECTS_ROOT}/devspaces
commandLine: "mvn package -DskipTests"
group:
kind: build
isDefault: true
- id: 2-startdev
exec:
label: "Start Development mode (Hot reload + debug)"
component: quarkus
workingDir: ${PROJECTS_ROOT}/devspaces
commandLine: "mvn compile quarkus:dev -DskipTests"
group:
kind: run
isDefault: true