From 9eca3ef33d5dee5abb3ab3b98618be2ef166a94c Mon Sep 17 00:00:00 2001 From: mdr223 Date: Fri, 10 Nov 2023 19:03:19 -0500 Subject: [PATCH] don't copy dashboard in dockerfile b/c it gets overwritten by mounting volume --- deploy/dev/dev-compose.yaml | 1 + deploy/dockerfiles/Dockerfile-grafana | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/dev/dev-compose.yaml b/deploy/dev/dev-compose.yaml index cb83515..0956dc7 100644 --- a/deploy/dev/dev-compose.yaml +++ b/deploy/dev/dev-compose.yaml @@ -211,6 +211,7 @@ services: - 3000:3000 # host:container volumes: - a2rchi-dev-grafana-data:/var/lib/grafana + - ../grafana/a2rchi-default-dashboard.json:/var/lib/grafana/dashboards/ logging: options: max-size: 10m diff --git a/deploy/dockerfiles/Dockerfile-grafana b/deploy/dockerfiles/Dockerfile-grafana index 25545a6..1373aa4 100644 --- a/deploy/dockerfiles/Dockerfile-grafana +++ b/deploy/dockerfiles/Dockerfile-grafana @@ -9,4 +9,3 @@ RUN mkdir -p /var/lib/grafana/dashboards # copy files into respective grafana directories COPY deploy/grafana/datasources.yaml /etc/grafana/provisioning/datasources/ COPY deploy/grafana/dashboards.yaml /etc/grafana/provisioning/dashboards/ -COPY deploy/grafana/a2rchi-default-dashboard.json /var/lib/grafana/dashboards/