summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dcae-analytics/dcae-analytics-tca-web/Dockerfile7
-rw-r--r--dcae-analytics/dcae-analytics-tca-web/src/main/resources/logback.xml (renamed from dcae-analytics/dcae-analytics-tca-web/logback.xml)0
2 files changed, 6 insertions, 1 deletions
diff --git a/dcae-analytics/dcae-analytics-tca-web/Dockerfile b/dcae-analytics/dcae-analytics-tca-web/Dockerfile
index 7e84380..b6e4778 100644
--- a/dcae-analytics/dcae-analytics-tca-web/Dockerfile
+++ b/dcae-analytics/dcae-analytics-tca-web/Dockerfile
@@ -12,8 +12,13 @@ ARG FINAL_JAR
ARG DEPENDENCIES_DIR
ARG DOCKER_ARTIFACT_DIR
+RUN mkdir -p /var/log/ONAP/dcaegen2/analytics/tca-gen2
#Add a new user and group to allow container to be run as non-root
-RUN addgroup -S tca-gen2 && adduser -S -G tca-gen2 tca-gen2
+RUN addgroup -S tca-gen2 && adduser -S -G tca-gen2 tca-gen2; \
+ chmod a+rwx /opt; \
+ chmod a+rwx /var/log/ONAP/dcaegen2/analytics/tca-gen2; \
+ chown -R tca-gen2:tca-gen2 /opt; \
+ chown -R tca-gen2:tca-gen2 /var/log/ONAP/dcaegen2/analytics/tca-gen2
#Copy dependencies and executable jar
WORKDIR ${DOCKER_ARTIFACT_DIR}
diff --git a/dcae-analytics/dcae-analytics-tca-web/logback.xml b/dcae-analytics/dcae-analytics-tca-web/src/main/resources/logback.xml
index 57348d3..57348d3 100644
--- a/dcae-analytics/dcae-analytics-tca-web/logback.xml
+++ b/dcae-analytics/dcae-analytics-tca-web/src/main/resources/logback.xml