aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkaixiliu <liukaixi@chinamobile.com>2023-06-28 17:25:21 +0800
committerKeguang He <hekeguang@chinamobile.com>2023-06-28 09:50:03 +0000
commit25c3ab069bf8e326d3a6a609b71db30e8d5f90f9 (patch)
tree50ad66727bc568e19486f313f6e9e36556152782
parent20d32f84eb5ac37098965e8afbe8ea9c9b0f1c2e (diff)
Modify log file path
Issue-ID: USECASEUI-816 Signed-off-by: kaixiliu <liukaixi@chinamobile.com> Change-Id: I3bbb6638901432b80f32e0346f591c18a1847552
-rw-r--r--intentanalysis/src/main/resources/logback.xml4
-rw-r--r--standalone/src/main/assembly/Dockerfile2
2 files changed, 3 insertions, 3 deletions
diff --git a/intentanalysis/src/main/resources/logback.xml b/intentanalysis/src/main/resources/logback.xml
index 05bf36d..5133720 100644
--- a/intentanalysis/src/main/resources/logback.xml
+++ b/intentanalysis/src/main/resources/logback.xml
@@ -27,7 +27,7 @@
<level>ERROR</level>
</filter>
- <file>/var/log/usecaseui/intent-analysis/ERROR.log</file>
+ <file>logs/usecaseui/intent-analysis/ERROR.log</file>
<append>true</append>
<!-- set immediateFlush to false for much higher logging throughput -->
<immediateFlush>true</immediateFlush>
@@ -43,7 +43,7 @@
</filter>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
- <fileNamePattern>/var/log/usecaseui/intent-analysis/%d{yyyy-MM}-DEBUG.log</fileNamePattern>
+ <fileNamePattern>logs/%d{yyyy-MM}-DEBUG.log</fileNamePattern>
<maxHistory>90</maxHistory>
<totalSizeCap>3GB</totalSizeCap>
</rollingPolicy>
diff --git a/standalone/src/main/assembly/Dockerfile b/standalone/src/main/assembly/Dockerfile
index 195cd65..3fcdf93 100644
--- a/standalone/src/main/assembly/Dockerfile
+++ b/standalone/src/main/assembly/Dockerfile
@@ -12,7 +12,7 @@ EXPOSE 8083
RUN addgroup -S uui && adduser -S uui -G uui && chown -R uui:uui /home/uui
-USER UUI
+USER uui
WORKDIR /home/uui
ENTRYPOINT ["sh", "-c"]
CMD ["exec java -jar usecase-ui-intent-analysis.jar"]