Skip to content

Commit 5135224

Browse files
committed
update to devfile 220
Signed-off-by: Stephanie <[email protected]>
1 parent 03d097d commit 5135224

File tree

2 files changed

+39
-12
lines changed

2 files changed

+39
-12
lines changed

devfile.yaml

+14-12
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,32 @@
1-
schemaVersion: 2.0.0
1+
schemaVersion: 2.2.0
22
metadata:
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
1314
starterProjects:
1415
- name: springbootproject
1516
git:
1617
remotes:
1718
origin: "https://github.com/odo-devfiles/springboot-ex.git"
1819
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
2830
- name: tools
2931
container:
3032
image: quay.io/eclipse/che-java11-maven:nightly

outerloop-deploy.yaml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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"

0 commit comments

Comments
 (0)