From 3f413c83912def8de3f52acb3a321ddb89016e31 Mon Sep 17 00:00:00 2001 From: "biagio.peccerillo" Date: Tue, 10 Dec 2024 12:24:57 +0100 Subject: [PATCH] Improved analysis tools for containerized application Details: - Added a file appender for the logs - Installed vim to easily navigate logs --- Dockerfile-standalone | 7 +++++-- docker/logback.xml | 24 +++++++++++++++--------- 2 files changed, 20 insertions(+), 11 deletions(-) diff --git a/Dockerfile-standalone b/Dockerfile-standalone index 2211f89..2f5afc2 100644 --- a/Dockerfile-standalone +++ b/Dockerfile-standalone @@ -1,8 +1,11 @@ FROM harbor.d4science.org/gcube/smartgears-distribution:4.0.0-SNAPSHOT-java17-tomcat10.1.19 + # Install vim + RUN apt update && apt install -y vim + + RUN mkdir -p /etc/config/storagehub COPY ./target/storagehub.war /tomcat/webapps/ COPY ./docker/jackrabbit /app/jackrabbit COPY ./docker/storagehub.xml /tomcat/conf/Catalina/localhost/ COPY ./docker/logback.xml /etc/ COPY ./docker/container.ini /etc/ - RUN mkdir -p /etc/config/storagehub - COPY ./docker/storage-settings.properties /etc/config/storagehub/ \ No newline at end of file + COPY ./docker/storage-settings.properties /etc/config/storagehub/ diff --git a/docker/logback.xml b/docker/logback.xml index 906b20e..4a0e73e 100644 --- a/docker/logback.xml +++ b/docker/logback.xml @@ -1,25 +1,31 @@ - Ï - %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n - + + %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n + + + + storagehub.log + + %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n + - - + - - + + - - + + + \ No newline at end of file