Skip to content

Commit 650aa23

Browse files
committed
use parent instead
Signed-off-by: Stephanie <[email protected]>
1 parent d0c2f71 commit 650aa23

File tree

1 file changed

+3
-40
lines changed

1 file changed

+3
-40
lines changed

devfile.yaml

Lines changed: 3 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@ metadata:
1111
language: "java"
1212
provider: Red Hat
1313
supportUrl: https://github.com/devfile-samples/devfile-support#support-information
14-
starterProjects:
15-
- name: springbootproject
16-
git:
17-
remotes:
18-
origin: "https://github.com/odo-devfiles/springboot-ex.git"
14+
parent:
15+
id: java-springboot
16+
registryUrl: "https://registry.devfile.io"
1917
components:
2018
- name: outerloop-build
2119
image:
@@ -27,42 +25,7 @@ components:
2725
- name: outerloop-deploy
2826
kubernetes:
2927
uri: outerloop-deploy.yaml
30-
- name: tools
31-
container:
32-
image: quay.io/eclipse/che-java11-maven:7.36.0
33-
memoryLimit: 768Mi
34-
mountSources: true
35-
endpoints:
36-
- name: '8080-tcp'
37-
targetPort: 8080
38-
volumeMounts:
39-
- name: m2
40-
path: /home/user/.m2
41-
- name: m2
42-
volume:
43-
size: 3Gi
4428
commands:
45-
- id: build
46-
exec:
47-
component: tools
48-
commandLine: "mvn clean -Dmaven.repo.local=/home/user/.m2/repository package -Dmaven.test.skip=true"
49-
group:
50-
kind: build
51-
isDefault: true
52-
- id: run
53-
exec:
54-
component: tools
55-
commandLine: "mvn -Dmaven.repo.local=/home/user/.m2/repository spring-boot:run"
56-
group:
57-
kind: run
58-
isDefault: true
59-
- id: debug
60-
exec:
61-
component: tools
62-
commandLine: "java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=${DEBUG_PORT},suspend=n -jar target/*.jar"
63-
group:
64-
kind: debug
65-
isDefault: true
6629
- id: build-image
6730
apply:
6831
component: outerloop-build

0 commit comments

Comments
 (0)