From f971db6e86c266bb1b004f3fb16e5a21550d8649 Mon Sep 17 00:00:00 2001 From: Michele Adduci Date: Fri, 24 May 2024 21:09:57 +0200 Subject: [PATCH] Updated Java Minimum version to 17 (#686) --- Dockerfile | 8 ++++---- pom.xml | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6f03d4c..15c4951 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ -FROM docker.io/library/maven:3.9.4-eclipse-temurin-17 AS build-hapi +FROM docker.io/library/maven:3.9.6-eclipse-temurin-17 AS build-hapi WORKDIR /tmp/hapi-fhir-jpaserver-starter -ARG OPENTELEMETRY_JAVA_AGENT_VERSION=1.31.0 +ARG OPENTELEMETRY_JAVA_AGENT_VERSION=1.33.3 RUN curl -LSsO https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v${OPENTELEMETRY_JAVA_AGENT_VERSION}/opentelemetry-javaagent.jar COPY pom.xml . @@ -18,7 +18,7 @@ RUN mkdir /app && cp /tmp/hapi-fhir-jpaserver-starter/target/ROOT.war /app/main. ########### bitnami tomcat version is suitable for debugging and comes with a shell ########### it can be built using eg. `docker build --target tomcat .` -FROM bitnami/tomcat:9.0 AS tomcat +FROM bitnami/tomcat:10.1 AS tomcat RUN rm -rf /opt/bitnami/tomcat/webapps/ROOT && \ mkdir -p /opt/bitnami/hapi/data/hapi/lucenefiles && \ @@ -36,7 +36,7 @@ COPY --from=build-hapi --chown=1001:1001 /tmp/hapi-fhir-jpaserver-starter/opente ENV ALLOW_EMPTY_PASSWORD=yes ########### distroless brings focus on security and runs on plain spring boot - this is the default image -FROM gcr.io/distroless/java17-debian11:nonroot AS default +FROM gcr.io/distroless/java17-debian12:nonroot AS default # 65532 is the nonroot user's uid # used here instead of the name to allow Kubernetes to easily detect that the container # is running as a non-root (uid != 0) user. diff --git a/pom.xml b/pom.xml index 6b414af..e5d48ec 100644 --- a/pom.xml +++ b/pom.xml @@ -21,7 +21,7 @@ war - 11 + 17 @@ -393,7 +393,7 @@ org.apache.maven.plugins maven-surefire-plugin - 3.1.2 + 3.2.5