diff --git a/.github/Dockerfile_PreBuild_OC b/.github/Dockerfile_PreBuild_OC index 668203152..c8cf7ad5c 100644 --- a/.github/Dockerfile_PreBuild_OC +++ b/.github/Dockerfile_PreBuild_OC @@ -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 \ No newline at end of file +USER jetty diff --git a/.github/logback.xml b/.github/logback.xml new file mode 100644 index 000000000..804a03633 --- /dev/null +++ b/.github/logback.xml @@ -0,0 +1,13 @@ + + + + + %d{yyyy-MM-dd HH:mm:ss} %t %c{0} [%p] %m%n + + + + + + + +