From: garciadeblas Date: Mon, 28 Feb 2022 16:05:09 +0000 (+0100) Subject: Fix bug with SA08 when updating prometheus.yaml X-Git-Tag: v10.1.0-rc1~1 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F14%2F11714%2F2;p=osm%2Fdevops.git Fix bug with SA08 when updating prometheus.yaml Change-Id: I167bf1adfa0d9abb02e143f56f5ed70217d1dbb1 Signed-off-by: garciadeblas --- diff --git a/docker/LCM/Dockerfile b/docker/LCM/Dockerfile index 03907d74..b6c99893 100644 --- a/docker/LCM/Dockerfile +++ b/docker/LCM/Dockerfile @@ -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 diff --git a/installers/docker/osm_pods/lcm.yaml b/installers/docker/osm_pods/lcm.yaml index aea32f92..68326716 100644 --- a/installers/docker/osm_pods/lcm.yaml +++ b/installers/docker/osm_pods/lcm.yaml @@ -61,7 +61,7 @@ spec: name: lcm-secret volumeMounts: - name: prometheus-config - mountPath: /etc/prometheus + mountPath: /opt/prometheus volumes: - name: prometheus-config hostPath: