-
Notifications
You must be signed in to change notification settings - Fork 0
/
devfile.yaml
56 lines (55 loc) · 1.36 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
schemaVersion: 2.2.0
metadata:
name: SpringBoot3DemoV4
components:
- name: tools
container:
image: quay.io/devfile/universal-developer-image:ubi8-latest
env:
- name: JAVA_HOME
value: /home/user/.sdkman/candidates/java/current
- name: spring_profiles_active
value: devspaces
- name: MAVEN_OPTS
value: "-Dmaven.wagon.http.ssl.insecure=true"
endpoints:
- exposure: public
name: debug
protocol: tcp
targetPort: 5005
- exposure: public
name: debug-java
protocol: tcp
targetPort: 3000
- exposure: public
name: che-debug
protocol: tcp
targetPort: 3100
- exposure: public
name: machine-debug
protocol: tcp
targetPort: 3333
- exposure: public
name: app
protocol: http
targetPort: 8080
path: /
volumeMounts:
- name: m2
path: /home/user/.m2
memoryLimit: 3G
cpuLimit: 3500m
cpuRequest: 400m
mountSources: true
- name: m2
volume:
size: 2G
events:
postStart:
- install-java-17
commands:
- id: install-java-17
exec:
component: tools
commandLine: 'source /home/user/.bashrc && sdk install java 17.0.6-tem'
workingDir: ${PROJECTS_ROOT}