diff options
author | Pamela Dragosh <pdragosh@research.att.com> | 2018-03-09 14:20:37 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-03-09 14:20:37 +0000 |
commit | d20185bb5b1a9968a6c5da1bd3876815a5235ca6 (patch) | |
tree | bb76afa092dfd56c2699d933eaf0842f5335c1fd /packages/docker | |
parent | 1afbb09df7606e64172309e6a7ab35c770f63dc2 (diff) | |
parent | f03ac858f048e4f9314b24a91b21e951ddca643b (diff) |
Merge "configurable logs dir and creation as root"
Diffstat (limited to 'packages/docker')
-rw-r--r-- | packages/docker/src/main/docker/Dockerfile | 6 |
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 |