summaryrefslogtreecommitdiffstats
path: root/packages/docker/src
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2018-03-08 17:56:21 +0000
committerGerrit Code Review <gerrit@onap.org>2018-03-08 17:56:21 +0000
commit21b74c3ead2e70d31dce836185cdc9bf3c519993 (patch)
treea89b3e11ac763795dfc193b46b043f34b97dbc41 /packages/docker/src
parent289e35d52503eda71d870da734ab23fc96ba0e8c (diff)
parent2ad2dd87bffdafba6e9f92d9208256e1d038f494 (diff)
Merge "configurable logs dir and creation as root"
Diffstat (limited to 'packages/docker/src')
-rw-r--r--packages/docker/src/main/docker/Dockerfile5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/docker/src/main/docker/Dockerfile b/packages/docker/src/main/docker/Dockerfile
index b0e8205a6..70ad8b5d5 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/policy
ENV http_proxy $HTTP_PROXY
ENV https_proxy $HTTPS_PROXY
+ENV POLICY_LOGS ${POLICY_LOGS}
RUN \
apt-get clean && \
@@ -29,7 +31,8 @@ RUN \
apt-get update && \
apt-get install -y mariadb-client
-RUN mkdir -p /opt/app/policy /tmp/policy-install && chown policy /opt/app/policy /tmp/policy-install
+RUN mkdir -p /opt/app/policy /tmp/policy-install ${POLICY_LOGS} && \
+ chown policy /opt/app/policy /tmp/policy-install ${POLICY_LOGS}
WORKDIR /tmp/policy-install