aboutsummaryrefslogtreecommitdiffstats
path: root/deliveries/src/main/docker/docker-files/Dockerfile
diff options
context:
space:
mode:
authorkurczews <krzysztof.kurczewski@nokia.com>2018-11-05 12:42:15 +0100
committerkurczews <krzysztof.kurczewski@nokia.com>2018-11-05 13:03:42 +0100
commit72eaec3eaa5c6496c40842b45b81fcb04a8ec50a (patch)
tree980b94429ebf1dc85ae251a9dabcb9ddd2d2ccf5 /deliveries/src/main/docker/docker-files/Dockerfile
parent5a7cdb624c0abe6f2b7e80bcbbaa740c4ee35e39 (diff)
Move logback config from WAR
Issue-ID: VID-40 Change-Id: I8c658e78af0e5b045e9fb36f4da07f0c5bb0f097 Signed-off-by: kurczews <krzysztof.kurczewski@nokia.com>
Diffstat (limited to 'deliveries/src/main/docker/docker-files/Dockerfile')
-rwxr-xr-xdeliveries/src/main/docker/docker-files/Dockerfile9
1 files changed, 5 insertions, 4 deletions
diff --git a/deliveries/src/main/docker/docker-files/Dockerfile b/deliveries/src/main/docker/docker-files/Dockerfile
index 8cd2bc7a..4b04e22c 100755
--- a/deliveries/src/main/docker/docker-files/Dockerfile
+++ b/deliveries/src/main/docker/docker-files/Dockerfile
@@ -1,13 +1,14 @@
FROM tomcat:8.0-jre8
+
# add vim and uncomment alias to speedup troubleshooting purpose
RUN apt-get update && apt-get install -y \
openjdk-8-jdk vim net-tools
-RUN sed -i 's/# alias/alias/g' /root/.bashrc
+COPY conf.d/ /etc/onap/vid/conf.d/
-RUN mkdir -p ${ROOT_DIR}/etc
+RUN sed -i 's/# alias/alias/g' /root/.bashrc
-ENV JAVA_OPTS="-Xmx1536m -Xms1536m"
+ENV JAVA_OPTS="-Xmx1536m -Xms1536m -Dlogback.configurationFile=/etc/onap/vid/conf.d/logback.xml"
ENV ROOT_DIR /opt/app/vid
@@ -87,4 +88,4 @@ ADD maven/artifacts/vid.war /tmp/vid/stage/
RUN chmod +x /tmp/vid/localize.sh
-CMD ["/tmp/vid/localize.sh"]
+CMD ["/tmp/vid/localize.sh"] \ No newline at end of file