-
Notifications
You must be signed in to change notification settings - Fork 3
/
devfile.yaml
50 lines (50 loc) · 1.22 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
schemaVersion: 2.1.0
metadata:
name: catalog-spring-boot
components:
- attributes:
che-theia.eclipse.org/vscode-preferences:
java.server.launchMode: Standard
container:
endpoints:
- exposure: none
name: debug
protocol: tcp
targetPort: 5005
- exposure: public
name: 8080-tcp
protocol: http
targetPort: 8080
image: 'quay.io/devfile/universal-developer-image:ubi8-0e189d9'
memoryLimit: 2Gi
volumeMounts:
- name: m2
path: /home/user/.m2
name: tools
- name: m2
volume:
size: 1G
commands:
- exec:
commandLine: mvn clean install
workingDir: '${PROJECT_SOURCE}'
component: tools
group:
isDefault: true
kind: build
id: maven-build
- exec:
commandLine: java -jar target/*.jar
workingDir: '${PROJECT_SOURCE}'
component: tools
group:
isDefault: true
kind: run
id: run-with-hsqldb
- exec:
commandLine: 'java -jar -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 target/*.jar'
workingDir: '${PROJECT_SOURCE}'
component: tools
group:
kind: run
id: run-debug