-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdevfile.yaml
73 lines (73 loc) · 1.73 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
schemaVersion: 2.1.0
metadata:
generateName: spring-apiserver-
components:
- name: tools
container:
image: quay.io/devfile/universal-developer-image:ubi8-latest
memoryLimit: 4Gi
mountSources: true
endpoints:
- exposure: public
path: /widgets
name: 8080-tcp
protocol: http
targetPort: 8080
volumeMounts:
- name: m2
path: /home/user/.m2
env:
- name: DEBUG_PORT
value: "5858"
- name: m2
volume:
size: 3Gi
- name: postgresdb
container:
image: docker.io/library/postgres:latest
memoryLimit: 1Gi
endpoints:
- exposure: none
name: db
protocol: tcp
targetPort: 5432
env:
- name: POSTGRES_USER
value: apiserver
- name: POSTGRES_PASSWORD
value: apiserver
- name: POSTGRES_DB
value: postgres
- name: PGDATA
value: /var/lib/postgresql/data/pgdata
volumeMounts:
- name: pgsqldata
path: /var/lib/postgresql/data
- name: pgsqldata
volume:
size: 1Gi
commands:
- id: build
exec:
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: ./gradlew clean build
group:
kind: build
isDefault: true
- id: run
exec:
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: ./gradlew bootRun
group:
kind: run
isDefault: true
- id: debug
exec:
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: 'java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=${DEBUG_PORT},suspend=n -jar target/*.jar'
group:
kind: debug
isDefault: true