-
Notifications
You must be signed in to change notification settings - Fork 72
/
devfile.yaml
92 lines (92 loc) · 2.15 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
commands:
- exec:
commandLine: mvn clean -Dmaven.repo.local=/home/user/.m2/repository package -Dmaven.test.skip=true
component: kubernetes-deploy
group:
isDefault: true
kind: build
workingDir: ${PROJECT_SOURCE}
id: build
- exec:
commandLine: mvn -Dmaven.repo.local=/home/user/.m2/repository spring-boot:run
component: kubernetes-deploy
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: kubernetes-deploy
group:
isDefault: true
kind: debug
workingDir: ${PROJECT_SOURCE}
id: debug
- id: deploy
composite:
commands:
- build
- deploy-k8s
group:
kind: deploy
isDefault: true
- id: deploy-k8s
apply:
component: kubernetes-deploy
components:
#- name: kubernetes-deploy
# attributes:
# deployment/replicas: 1
# deployment/cpuRequest: 10m
# deployment/memoryRequest: 180Mi
# deployment/container-port: 8080
# kubernetes:
# uri: k8s/deployment.yaml
# endpoints:
# - name: http-8080
# targetPort: 8080
# path: /
- 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/ubi9/openjdk-17:1.16
memoryLimit: 768Mi
mountSources: true
volumeMounts:
- name: m2
path: /home/user/.m2
name: kubernetes-deploy
- name: m2
volume:
size: 3Gi
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: sample-spring-kotlin-microservice
projectType: springboot
tags:
- Java
- Spring
version: 1.2.0
schemaVersion: 2.2.0
starterProjects:
- git:
remotes:
origin: https://github.com/odo-devfiles/springboot-ex.git
name: springbootproject