File tree Expand file tree Collapse file tree 2 files changed +54
-13
lines changed
Expand file tree Collapse file tree 2 files changed +54
-13
lines changed Original file line number Diff line number Diff line change 1- schemaVersion : 2.0 .0
1+ schemaVersion : 2.2 .0
22metadata :
33 name : java-springboot
44 version : 1.1.0
55 attributes :
6- alpha.build-context : .
7- alpha.build-dockerfile : docker/Dockerfile
6+ alpha.dockerimage-port : 8081
87 displayName : Java Spring Boot
98 description : Java Spring Boot using Maven
109 tags : ["Java", "Spring"]
1110 projectType : " springboot"
1211 language : " java"
12+ provider : Red Hat
13+ supportUrl : https://github.com/devfile-samples/devfile-support#support-information
1314starterProjects :
1415 - name : springbootproject
1516 git :
1617 remotes :
1718 origin : " https://github.com/odo-devfiles/springboot-ex.git"
1819components :
19- - name : buildguidance
20- attributes :
21- tool : console-import
22- container :
23- image : buildguidanceimage-placeholder
24- memoryLimit : 1024Mi
25- endpoints :
26- - name : http-8081
27- targetPort : 8081
20+ - name : outerloop-build
21+ image :
22+ imageName : java-springboot-image:latest
23+ dockerfile :
24+ uri : docker/Dockerfile
25+ buildContext : .
26+ rootRequired : false
27+ - name : outerloop-deploy
28+ kubernetes :
29+ uri : outerloop-deploy.yaml
2830 - name : tools
2931 container :
30- image : quay.io/eclipse/che-java11-maven:nightly
32+ image : quay.io/eclipse/che-java11-maven:7.36.0
3133 memoryLimit : 768Mi
3234 mountSources : true
3335 endpoints :
@@ -61,3 +63,17 @@ commands:
6163 group :
6264 kind : debug
6365 isDefault : true
66+ - id : build-image
67+ apply :
68+ component : outerloop-build
69+ - id : deployk8s
70+ apply :
71+ component : outerloop-deploy
72+ - id : deploy
73+ composite :
74+ commands :
75+ - build-image
76+ - deployk8s
77+ group :
78+ kind : deploy
79+ isDefault : true
Original file line number Diff line number Diff line change 1+ kind : Deployment
2+ apiVersion : apps/v1
3+ metadata :
4+ name : my-java-springboot
5+ spec :
6+ replicas : 1
7+ selector :
8+ matchLabels :
9+ app : java-springboot-app
10+ template :
11+ metadata :
12+ labels :
13+ app : java-springboot-app
14+ spec :
15+ containers :
16+ - name : my-java-springboot
17+ image : java-springboot-image:latest
18+ ports :
19+ - name : http
20+ containerPort : 8081
21+ protocol : TCP
22+ resources :
23+ limits :
24+ memory : " 1024Mi"
25+ cpu : " 500m"
You can’t perform that action at this time.
0 commit comments