From 85eddc29352de227486ecda1d85ecfe64b9887e2 Mon Sep 17 00:00:00 2001 From: "ranjan.kumar@t-systems.com" Date: Wed, 4 Jun 2025 09:07:03 +0200 Subject: [PATCH] Java 17 and spring boot updgrade for babel Issue-ID: AAI-4169 Change-Id: Ia41d74429b16aa902d3381f6f58315006ff4db6a Signed-off-by: ranjan.kumar@t-systems.com --- pom.xml | 4 +-- src/main/docker/Dockerfile | 16 +++--------- src/main/resources/logback.xml | 58 +++++++++++++----------------------------- 3 files changed, 24 insertions(+), 54 deletions(-) diff --git a/pom.xml b/pom.xml index c4780e0..5dc94e7 100644 --- a/pom.xml +++ b/pom.xml @@ -41,7 +41,7 @@ - + 2.7.18 UTF-8 UTF-8 @@ -90,7 +90,7 @@ 1.9.4 1.2.11 3.0.13 - 2020.0.2 + 2021.0.9 1.27.0 2.16.1 diff --git a/src/main/docker/Dockerfile b/src/main/docker/Dockerfile index d956c76..8d474ea 100644 --- a/src/main/docker/Dockerfile +++ b/src/main/docker/Dockerfile @@ -1,5 +1,6 @@ -FROM @aai.docker.namespace@/aai-common-@aai.base.image@:@aai.base.image.version@ +FROM eclipse-temurin:11-jre-alpine +USER 1000 ARG MICRO_HOME=/opt/app/babel # Build up the deployment folder structure @@ -7,17 +8,8 @@ ARG MICRO_HOME=/opt/app/babel #RUN adduser -u 1000 -h /opt/aaihome/aaiadmin -S -D -G aaiadmin -s /bin/bash aaiadmin WORKDIR $MICRO_HOME -USER root -# Create the aai user -RUN mkdir -p /opt/aaihome $MICRO_HOME /logs && \ - ln -s /logs $MICRO_HOME/logs && \ - chown -R aaiadmin:aaiadmin $MICRO_HOME && \ - chown -R aaiadmin:aaiadmin /logs - -COPY --chown=aaiadmin:aaiadmin /maven/babel/ . +COPY --chown=1000:1000 /maven/babel/ . # The start script is executable and can be run directly. -ENTRYPOINT ["/bin/bash", "/opt/app/babel/bin/start.sh"] - -USER aaiadmin +ENTRYPOINT ["/bin/sh", "/opt/app/babel/bin/start.sh"] diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml index d0bf65d..d8c7771 100644 --- a/src/main/resources/logback.xml +++ b/src/main/resources/logback.xml @@ -15,8 +15,7 @@ # limitations under the License. --> - - + @@ -51,11 +50,9 @@ - - @@ -64,31 +61,25 @@ 256 - - + audit logger and appender + are specializations of the EELF application root logger and appender. This can be used to segregate + Policy engine events + from other components, or it can be eliminated to record these events as part of the application + root log. --> 256 - 256 - - - e.level.toInt() < INFO.toInt() - + DENY NEUTRAL @@ -97,51 +88,40 @@ false - - - - - + - - - - - - - - + + + + - - + - - + - - + @@ -149,12 +129,10 @@ - - + - - + -- 2.16.6