summaryrefslogtreecommitdiffstats
path: root/packages/docker/src
diff options
context:
space:
mode:
authorJorge Hernandez <jh1730@att.com>2018-03-08 00:17:33 -0600
committerJorge Hernandez <jh1730@att.com>2018-03-08 12:58:05 -0600
commitf03ac858f048e4f9314b24a91b21e951ddca643b (patch)
treec5f89e9757038eb6c6a7a4700f3135ec5772e0f5 /packages/docker/src
parent19b1048eb866acc29a4a2a32cb19f860a136b168 (diff)
configurable logs dir and creation as root
Change-Id: Ib23ee897372f0911394441739da5c7b9e7398910 Issue-ID: POLICY-554 Signed-off-by: Jorge Hernandez <jh1730@att.com>
Diffstat (limited to 'packages/docker/src')
-rw-r--r--packages/docker/src/main/docker/Dockerfile6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/docker/src/main/docker/Dockerfile b/packages/docker/src/main/docker/Dockerfile
index a455f13c..d7af6be9 100644
--- a/packages/docker/src/main/docker/Dockerfile
+++ b/packages/docker/src/main/docker/Dockerfile
@@ -2,9 +2,11 @@ FROM ubuntu:14.04
ARG HTTP_PROXY=${HTTP_PROXY}
ARG HTTPS_PROXY=${HTTPS_PROXY}
+ARG POLICY_LOGS=/var/log/ONAP/policy
ENV http_proxy $HTTP_PROXY
ENV https_proxy $HTTPS_PROXY
+ENV POLICY_LOGS ${POLICY_LOGS}
RUN \
apt-get clean && \
@@ -30,8 +32,8 @@ RUN \
apt-get install -y mariadb-client
RUN pip install http-prompt
-RUN mkdir -p /opt/app/policy/opt /tmp/policy-install && \
- chown -R policy /opt/app/policy /tmp/policy-install
+RUN mkdir -p /opt/app/policy/ /tmp/policy-install/ ${POLICY_LOGS} && \
+ chown -R policy /opt/app/policy/ /tmp/policy-install/ ${POLICY_LOGS}
WORKDIR /tmp/policy-install