From 227e0ec3cc9f8e0f31163a09b68863080ee459e5 Mon Sep 17 00:00:00 2001 From: Jorge Hernandez Date: Thu, 13 Dec 2018 18:24:06 -0600 Subject: Environment variable pointing to logback.xml Per current logging spec, the location is recommended to be under /etc/onap//subcomponent but is acceptable to have an enviroment variable pointing to it instead. Environment variable is preferred over fixed location so the config files are not all over the place, and is not placed under directories owned by root. Change-Id: Id5679f49a726fa43147ffb3e141acec30ebfdaaf Issue-ID: POLICY-1294 Signed-off-by: Jorge Hernandez --- packages/docker/src/main/docker/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'packages/docker/src') diff --git a/packages/docker/src/main/docker/Dockerfile b/packages/docker/src/main/docker/Dockerfile index f04b0cf5..087dcb47 100644 --- a/packages/docker/src/main/docker/Dockerfile +++ b/packages/docker/src/main/docker/Dockerfile @@ -13,6 +13,8 @@ ENV BUILD_VERSION ${BUILD_VERSION} ENV POLICY_INSTALL ${POLICY_INSTALL} ENV POLICY_HOME ${POLICY_HOME} ENV POLICY_LOGS ${POLICY_LOGS} +ENV POLICY_CONFIG ${POLICY_HOME}/config +ENV POLICY_LOGBACK ${POLICY_CONFIG}/logback.xml ENV POLICY_DOCKER true RUN \ -- cgit 1.2.3-korg