Commit d0135018 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Reubica config inicial y la copia tras modificar

parent 6f3f6222
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
#!/bin/sh -e

cat /etc/prometheus/prometheus.yml > /tmp/prometheus.yml

if [ ${JOBS+x} ]
then
	for job in $(echo "${JOBS}" | tr ',' ' ')
@@ -43,7 +41,7 @@ then
	done
fi

mv /tmp/prometheus.yml /etc/prometheus/prometheus.yml
cp /tmp/prometheus.yml /etc/prometheus/prometheus.yml

set -- /bin/prometheus "$@"

+1 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ services:
      - prometheus:/prometheus
    configs:
      - source: prometheus-conf
        target: /etc/prometheus/prometheus.yml
        target: /tmp/prometheus.yml
      - source: prometheus-entrypoint
        target: /etc/prometheus/entrypoint.sh
        mode: 0744