Use paketobuildpacks/builder-noble-java-tiny as the default image builder
Closes gh-42711
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
FROM ubuntu:noble-20250404 as prepare
|
||||
COPY downloads/* /opt/download/
|
||||
RUN mkdir -p /opt/jdk && \
|
||||
cd /opt/jdk && \
|
||||
tar xzf /opt/download/* --strip-components=1
|
||||
|
||||
FROM ubuntu:noble-20250404
|
||||
RUN apt-get update && apt-get install -y software-properties-common curl
|
||||
COPY --from=prepare /opt/jdk /opt/jdk
|
||||
ENV JAVA_HOME /opt/jdk
|
||||
ENV PATH $JAVA_HOME/bin:$PATH
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM ubuntu:jammy-20231211.1
|
||||
FROM ubuntu:noble-20250404
|
||||
RUN apt-get update && \
|
||||
apt-get install -y software-properties-common curl && \
|
||||
mkdir -p /opt/oraclejdk && \
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM ubuntu:jammy-20231211.1
|
||||
FROM ubuntu:noble-20250404
|
||||
RUN apt-get update && \
|
||||
apt-get install -y software-properties-common curl && \
|
||||
mkdir -p /opt/oraclejdk && \
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
FROM ubuntu:jammy-20240405 as prepare
|
||||
FROM ubuntu:noble-20250404 as prepare
|
||||
COPY downloads/* /opt/download/
|
||||
RUN mkdir -p /opt/jdk && \
|
||||
cd /opt/jdk && \
|
||||
tar xzf /opt/download/* --strip-components=1
|
||||
|
||||
FROM ubuntu:jammy-20240405
|
||||
FROM ubuntu:noble-20250404
|
||||
COPY --from=prepare /opt/jdk /opt/jdk
|
||||
ENV JAVA_HOME /opt/jdk
|
||||
ENV PATH $JAVA_HOME/bin:$PATH
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
* Copyright 2012-2025 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -106,7 +106,7 @@ class SniIntegrationTests {
|
||||
|
||||
protected ApplicationContainer(String appName, String fileSuffix, String... entryPointArgs) {
|
||||
super(new ImageFromDockerfile().withFileFromFile("spring-boot.jar", findJarFile(appName, fileSuffix))
|
||||
.withDockerfileFromBuilder((builder) -> builder.from("eclipse-temurin:17-jre-jammy")
|
||||
.withDockerfileFromBuilder((builder) -> builder.from("eclipse-temurin:17-jre-noble")
|
||||
.add("spring-boot.jar", "/spring-boot.jar")
|
||||
.entryPoint(buildEntryPoint(entryPointArgs))));
|
||||
withExposedPorts(SERVER_PORT);
|
||||
|
||||
Reference in New Issue
Block a user