summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkaixiliu <liukaixi@chinamobile.com>2023-06-28 17:25:21 +0800
committerKaixi LIU <liukaixi@chinamobile.com>2023-06-28 09:52:07 +0000
commit15f86364989f783eed1ab3f1977109bdb8b93af3 (patch)
tree3a6e7276daf7caf0ab6512a3603edbc205c66729
parentea5cbfc0d3032d1b17ebfef3ab2eb7de83aa9878 (diff)
Modify log file path5.2.4
Issue-ID: USECASEUI-816 Signed-off-by: kaixiliu <liukaixi@chinamobile.com> Change-Id: I3bbb6638901432b80f32e0346f591c18a1847552 (cherry picked from commit 25c3ab069bf8e326d3a6a609b71db30e8d5f90f9)
-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"]