From a0807088a21f3eff11f381c9d249e1905ca9b791 Mon Sep 17 00:00:00 2001 From: nscuro Date: Fri, 4 Aug 2023 14:54:27 +0200 Subject: [PATCH] Provide logback config for JSON logging to STDOUT Signed-off-by: nscuro --- src/main/docker/Dockerfile | 2 +- src/main/docker/logback-json.xml | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 src/main/docker/logback-json.xml diff --git a/src/main/docker/Dockerfile b/src/main/docker/Dockerfile index db9d862260..73f7982f8f 100644 --- a/src/main/docker/Dockerfile +++ b/src/main/docker/Dockerfile @@ -53,7 +53,7 @@ RUN mkdir -p ${APP_DIR} ${DATA_DIR} \ COPY --from=jre-build /opt/java/openjdk $JAVA_HOME # Copy the compiled WAR to the application directory created above -COPY ./target/${WAR_FILENAME} ${APP_DIR} +COPY ./target/${WAR_FILENAME} ./src/main/docker/logback-json.xml ${APP_DIR} # Specify the user to run as (in numeric format for compatibility with Kubernetes/OpenShift's SCC) USER ${UID} diff --git a/src/main/docker/logback-json.xml b/src/main/docker/logback-json.xml new file mode 100644 index 0000000000..510d884006 --- /dev/null +++ b/src/main/docker/logback-json.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file