Skip to content

Commit

Permalink
Merge pull request #2361 from OpenBankProject/github-action-wip
Browse files Browse the repository at this point in the history
Set log level in OC image
  • Loading branch information
simonredfern authored Jan 9, 2024
2 parents de9e4ef + 003ebb8 commit af0f7d3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/Dockerfile_PreBuild_OC
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ FROM jetty:9.4-jdk11-alpine
# Copy build artifact (.war file) into jetty from 'maven' stage.
COPY /obp-api/target/obp-api-1.*.war /var/lib/jetty/webapps/ROOT.war
USER root
RUN mkdir -p /WEB-INF/classes
COPY .github/logback.xml /WEB-INF/classes/
RUN cd / && jar uvf /var/lib/jetty/webapps/ROOT.war WEB-INF/classes/logback.xml
RUN chgrp -R 0 /tmp/jetty && chmod -R g+rwX /tmp/jetty
RUN chgrp -R 0 /var/lib/jetty && chmod -R g+rwX /var/lib/jetty
RUN chgrp -R 0 /usr/local/jetty && chmod -R g+rwX /usr/local/jetty
USER jetty
USER jetty
13 changes: 13 additions & 0 deletions .github/logback.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<configuration>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{yyyy-MM-dd HH:mm:ss} %t %c{0} [%p] %m%n</pattern>
</encoder>
</appender>

<root level="INFO">
<appender-ref ref="STDOUT"/>
</root>
</configuration>

0 comments on commit af0f7d3

Please sign in to comment.