summaryrefslogtreecommitdiffstats
path: root/packages/docker/src/main
diff options
context:
space:
mode:
authorJorge Hernandez <jorge.hernandez-herrero@att.com>2018-12-13 18:24:06 -0600
committerJorge Hernandez <jorge.hernandez-herrero@att.com>2018-12-13 18:31:22 -0600
commit227e0ec3cc9f8e0f31163a09b68863080ee459e5 (patch)
tree0f366acb04eeb732073e9bb44e57d3a800800b3f /packages/docker/src/main
parente9e1ce7afc29bb68277acd421dfad1284a8d64f7 (diff)
Environment variable pointing to logback.xml
Per current logging spec, the location is recommended to be under /etc/onap/<component>/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 <jorge.hernandez-herrero@att.com>
Diffstat (limited to 'packages/docker/src/main')
-rw-r--r--packages/docker/src/main/docker/Dockerfile2
1 files changed, 2 insertions, 0 deletions
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 \