-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathdevfile.yaml
63 lines (63 loc) · 1.59 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
schemaVersion: 2.0.0
metadata:
name: java-springboot
version: 1.1.0
attributes:
alpha.build-context: .
alpha.build-dockerfile: docker/Dockerfile
displayName: Java Spring Boot
description: Java Spring Boot using Maven
tags: ["Java", "Spring"]
projectType: "springboot"
language: "java"
starterProjects:
- name: springbootproject
git:
remotes:
origin: "https://github.com/odo-devfiles/springboot-ex.git"
components:
- name: buildguidance
attributes:
tool: console-import
container:
image: buildguidanceimage-placeholder
memoryLimit: 1024Mi
endpoints:
- name: http-8081
targetPort: 8081
- name: tools
container:
image: quay.io/eclipse/che-java11-maven:nightly
memoryLimit: 768Mi
mountSources: true
endpoints:
- name: '8080-tcp'
targetPort: 8080
volumeMounts:
- name: m2
path: /home/user/.m2
- name: m2
volume:
size: 3Gi
commands:
- id: build
exec:
component: tools
commandLine: "mvn clean -Dmaven.repo.local=/home/user/.m2/repository package -Dmaven.test.skip=true"
group:
kind: build
isDefault: true
- id: run
exec:
component: tools
commandLine: "mvn -Dmaven.repo.local=/home/user/.m2/repository spring-boot:run"
group:
kind: run
isDefault: true
- id: debug
exec:
component: tools
commandLine: "java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=${DEBUG_PORT},suspend=n -jar target/*.jar"
group:
kind: debug
isDefault: true