Fix bug with SA08 when updating prometheus.yaml 14/11714/2
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 28 Feb 2022 16:05:09 +0000 (17:05 +0100)
committerMark Beierl <mark.beierl@canonical.com>
Mon, 28 Feb 2022 16:31:43 +0000 (11:31 -0500)
Change-Id: I167bf1adfa0d9abb02e143f56f5ed70217d1dbb1
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
docker/LCM/Dockerfile
installers/docker/osm_pods/lcm.yaml

index 03907d7..b6c9989 100644 (file)
@@ -105,6 +105,9 @@ RUN groupadd -g 1000 appuser && \
     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
index aea32f9..6832671 100644 (file)
@@ -61,7 +61,7 @@ spec:
             name: lcm-secret
         volumeMounts:
         - name: prometheus-config
-          mountPath: /etc/prometheus
+          mountPath: /opt/prometheus
       volumes:
       - name: prometheus-config
         hostPath: