-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevfile.yaml
More file actions
47 lines (47 loc) · 1.04 KB
/
devfile.yaml
File metadata and controls
47 lines (47 loc) · 1.04 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
schemaVersion: 2.1.0
metadata:
name: test-eclipse-che
components:
- name: tools
container:
image: registry.redhat.io/devspaces/udi-rhel8:3.0
memoryLimit: 4Gi
endpoints:
- exposure: none
name: debug
protocol: tcp
targetPort: 5005
- exposure: public
name: input-form-endpoint
protocol: http
targetPort: 8080
env:
- name: GRADLE_USER_HOME
value: /home/user/.gradle
volumeMounts:
- name: gradle
path: /home/jboss/.gradle
mountSources: true
- name: m2
volume:
size: 1G
- name: gradle
volume:
size: 1G
commands:
- id: 1-build
exec:
label: "Build"
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: chmod 755 gradlew && ./gradlew build
group:
kind: build
- id: 2-run
exec:
label: "Run application"
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: ./gradlew bootRun
group:
kind: run