diff options
author | Jorge Hernandez <jh1730@att.com> | 2018-03-08 00:43:53 -0600 |
---|---|---|
committer | Jorge Hernandez <jh1730@att.com> | 2018-03-08 00:47:27 -0600 |
commit | 2ad2dd87bffdafba6e9f92d9208256e1d038f494 (patch) | |
tree | 44f2549a342939aa3231bcbf0abc2b7df2222709 /packages/docker | |
parent | eefb77c4343190c7dff60f5ab506454dbd702b32 (diff) |
configurable logs dir and creation as root
Change-Id: I9d5d1dcf97e8951c2c8a700b301bcc33410dd839
Issue-ID: POLICY-562
Signed-off-by: Jorge Hernandez <jh1730@att.com>
Diffstat (limited to 'packages/docker')
-rw-r--r-- | packages/docker/src/main/docker/Dockerfile | 5 |
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 |