forked from aschilling/ExampleSpringRestProject
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevfile.yaml
More file actions
63 lines (58 loc) · 1.56 KB
/
devfile.yaml
File metadata and controls
63 lines (58 loc) · 1.56 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
schemaVersion: 2.2.0
metadata:
name: example-spring-rest-project
description: Eclipse Che devfile for ExampleSpringRestProject (Spring Boot REST, Java 8, Maven)
version: 0.0.1
components:
- name: tools
container:
image: quay.io/devfile/universal-developer-image:ubi9-latest
memoryLimit: 1512Mi
memoryRequest: 256Mi
cpuLimit: "2"
cpuRequest: "0.5"
endpoints:
- name: spring-boot
targetPort: 8080
exposure: public
protocol: http
secure: false
path: /
- name: debug
targetPort: 5005
exposure: internal
protocol: tcp
env:
- name: JAVA_HOME
value: /usr/lib/jvm/java-8-openjdk
- name: MAVEN_OPTS
value: "-Xmx512m"
- name: SERVER_ADDRESS
value: "0.0.0.0"
mountSources: true
commands:
- id: build
exec:
label: "Build"
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: "mvn clean package -DskipTests"
- id: test
exec:
label: "Test"
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: "mvn test"
- id: run
exec:
label: "Run"
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: "mvn spring-boot:run"
hotReloadCapable: true
- id: debug
exec:
label: "Debug"
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: "mvn spring-boot:run -Dspring-boot.run.jvmArguments=\"-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005\""