File tree 2 files changed +39
-12
lines changed
2 files changed +39
-12
lines changed Original file line number Diff line number Diff line change 1
- schemaVersion : 2.0 .0
1
+ schemaVersion : 2.2 .0
2
2
metadata :
3
3
name : java-springboot
4
4
version : 1.1.0
5
5
attributes :
6
- alpha.build-context : .
7
- alpha.build-dockerfile : docker/Dockerfile
6
+ alpha.dockerimage-port : 8081
8
7
displayName : Java Spring Boot
9
8
description : Java Spring Boot using Maven
10
9
tags : ["Java", "Spring"]
11
10
projectType : " springboot"
12
11
language : " java"
12
+ provider : Red Hat
13
+ supportUrl : https://github.com/devfile-samples/devfile-support#support-information
13
14
starterProjects :
14
15
- name : springbootproject
15
16
git :
16
17
remotes :
17
18
origin : " https://github.com/odo-devfiles/springboot-ex.git"
18
19
components :
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
28
30
- name : tools
29
31
container :
30
32
image : quay.io/eclipse/che-java11-maven:nightly
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