summaryrefslogtreecommitdiffstats
path: root/components/pm-subscription-handler/Dockerfile
diff options
context:
space:
mode:
authorefiacor <fiachra.corcoran@est.tech>2020-01-24 13:19:01 +0000
committerefiacor <fiachra.corcoran@est.tech>2020-02-10 15:45:13 +0000
commit8b3fc62050a344fe9a9c8909e4c672cb9aa3281d (patch)
treeaa74fef6de378a1914067cb8a3fffa3798cb6a35 /components/pm-subscription-handler/Dockerfile
parentbbe05d8a65ee0ac698d906b50282406bafe34f80 (diff)
Adding DB Init and setup
Signed-off-by: efiacor <fiachra.corcoran@est.tech> Change-Id: Ie32efcf007c9b6fa25b0072019f4a91a841d9d0c Issue-ID: DCAEGEN2-1828
Diffstat (limited to 'components/pm-subscription-handler/Dockerfile')
-rw-r--r--components/pm-subscription-handler/Dockerfile10
1 files changed, 4 insertions, 6 deletions
diff --git a/components/pm-subscription-handler/Dockerfile b/components/pm-subscription-handler/Dockerfile
index 4f03a306..bb3f63c6 100644
--- a/components/pm-subscription-handler/Dockerfile
+++ b/components/pm-subscription-handler/Dockerfile
@@ -1,5 +1,5 @@
# ============LICENSE_START===================================================
-# Copyright (C) 2019 Nordix Foundation.
+# Copyright (C) 2020 Nordix Foundation.
# ============================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -24,15 +24,13 @@ ENV PMSHUSER=pmsh \
# set PATH & PYTHONPATH vars
PATH=/usr/local/lib/python3.7/bin:$PATH:$APPDIR/bin \
PYTHONPATH=/usr/local/lib/python3.7/site-packages:./mod:./:$PYTHONPATH:$APPDIR/bin \
- REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
+ REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt \
+ LOGS_PATH="/var/log/ONAP/dcaegen2/services/pmsh"
WORKDIR $APPDIR
# add non root user & group
-RUN addgroup --system $PMSHUSER && adduser --ingroup $PMSHUSER --system $PMSHUSER && \
- # create logs dir and change permissions
- mkdir -p /var/log/ONAP/$PMSHUSER/logs && \
- chmod a+w /var/log/ONAP/$PMSHUSER/logs
+RUN addgroup --system $PMSHUSER && adduser --ingroup $PMSHUSER --system $PMSHUSER
COPY setup.py ./
COPY requirements.txt ./