Skip to content

Commit

Permalink
[java-springboot] Use registry.access.redhat.com/ubi9/openjdk-17 image
Browse files Browse the repository at this point in the history
Signed-off-by: Armel Soro <[email protected]>
  • Loading branch information
rm3l committed Mar 17, 2023
1 parent 61a2131 commit fa02b90
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
schemaVersion: 2.1.0
metadata:
name: java-springboot
version: 1.2.0
version: 1.3.0
displayName: Spring Boot®
description: Spring Boot® using Java
tags:
Expand All @@ -19,7 +19,7 @@ starterProjects:
components:
- name: tools
container:
image: registry.access.redhat.com/ubi8/openjdk-11:latest
image: registry.access.redhat.com/ubi9/openjdk-17:latest
command: ["tail", "-f", "/dev/null"]
memoryLimit: 768Mi
mountSources: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
schemaVersion: 2.2.0
metadata:
name: java-springboot
version: 2.0.0
version: 2.1.0
displayName: Spring Boot®
description: Spring Boot® using Java
tags:
Expand All @@ -19,7 +19,7 @@ starterProjects:
components:
- name: tools
container:
image: registry.access.redhat.com/ubi8/openjdk-11:latest
image: registry.access.redhat.com/ubi9/openjdk-17:latest
command: ['tail', '-f', '/dev/null']
memoryLimit: 768Mi
mountSources: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ RUN mvn dependency:go-offline
COPY src src
RUN mvn package -Dmaven.test.skip=true

FROM openjdk:11-jdk
FROM registry.access.redhat.com/ubi9/openjdk-17-runtime:latest
COPY --from=0 /build/target/demo-0.0.1-SNAPSHOT.jar /app/target/demo-0.0.1-SNAPSHOT.jar

EXPOSE 8081
Expand Down
4 changes: 2 additions & 2 deletions stacks/java-springboot/stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ description: Spring Boot using Java
displayName: Spring Boot
icon: https://raw.githubusercontent.com/devfile-samples/devfile-stack-icons/main/spring.svg
versions:
- version: 1.2.0
- version: 1.3.0
default: true # should have one and only one default version
- version: 2.0.0
- version: 2.1.0

0 comments on commit fa02b90

Please sign in to comment.