forked from yamaszone/spring-greetings
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevfile.yaml
More file actions
96 lines (96 loc) · 2.09 KB
/
devfile.yaml
File metadata and controls
96 lines (96 loc) · 2.09 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
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
commands:
- exec:
commandLine: mvn clean -Dmaven.repo.local=/home/user/.m2/repository package -Dmaven.test.skip=true
component: tools
group:
isDefault: true
kind: build
workingDir: ${PROJECT_SOURCE}
id: build
- exec:
commandLine: mvn -Dmaven.repo.local=/home/user/.m2/repository spring-boot:run
component: tools
group:
isDefault: true
kind: run
workingDir: ${PROJECT_SOURCE}
id: run
- exec:
commandLine: java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=${DEBUG_PORT},suspend=n
-jar target/*.jar
component: tools
group:
isDefault: true
kind: debug
workingDir: ${PROJECT_SOURCE}
id: debug
- apply:
component: build
id: build-image
- apply:
component: deploy
id: deployk8s
- composite:
commands:
- build-image
- deployk8s
group:
isDefault: true
kind: deploy
id: deploy
components:
- container:
command:
- tail
- -f
- /dev/null
endpoints:
- name: http-springboot
targetPort: 8080
- exposure: none
name: debug
targetPort: 5858
env:
- name: DEBUG_PORT
value: "5858"
image: registry.access.redhat.com/ubi8/openjdk-11:1.16-1
memoryLimit: 768Mi
mountSources: true
volumeMounts:
- name: m2
path: /home/user/.m2
name: tools
- name: m2
volume:
size: 3Gi
- image:
dockerfile:
buildContext: .
rootRequired: false
uri: docker/Dockerfile
imageName: java-springboot-image:latest
name: build
- kubernetes:
endpoints:
- name: http-8081
targetPort: 8081
uri: kubernetes/deploy.yaml
name: deploy
metadata:
description: Java application using Spring Boot® and OpenJDK 11
displayName: Spring Boot®
globalMemoryLimit: 2674Mi
icon: https://raw.githubusercontent.com/devfile-samples/devfile-stack-icons/main/spring.svg
language: Java
name: demo
projectType: springboot
tags:
- Java
- Spring
version: 2.0.0
schemaVersion: 2.2.0
starterProjects:
- git:
remotes:
origin: https://github.com/odo-devfiles/springboot-ex.git
name: springbootproject