Fix bug with SA08 when updating prometheus.yaml
Change-Id: I167bf1adfa0d9abb02e143f56f5ed70217d1dbb1
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
diff --git a/docker/LCM/Dockerfile b/docker/LCM/Dockerfile
index 03907d7..b6c9989 100644
--- a/docker/LCM/Dockerfile
+++ b/docker/LCM/Dockerfile
@@ -105,6 +105,9 @@
mkdir /app/log && \
chown -R appuser:appuser /app
+RUN mkdir /opt/prometheus
+RUN chown appuser: /opt/prometheus
+
WORKDIR /app/osm_lcm
# Changing the security context
diff --git a/installers/docker/osm_pods/lcm.yaml b/installers/docker/osm_pods/lcm.yaml
index aea32f9..6832671 100644
--- a/installers/docker/osm_pods/lcm.yaml
+++ b/installers/docker/osm_pods/lcm.yaml
@@ -61,7 +61,7 @@
name: lcm-secret
volumeMounts:
- name: prometheus-config
- mountPath: /etc/prometheus
+ mountPath: /opt/prometheus
volumes:
- name: prometheus-config
hostPath: