Dev: Provision devenv dev-dashboards in frontend-service stack (#109142)

* Dev: Provision devenv dev-dashboards in frontend-service stack

* revert changing the home dashboard
This commit is contained in:
Josh Hunt
2025-08-05 09:56:30 +01:00
committed by GitHub
parent 57adbe618f
commit 608b94ac10
4 changed files with 27 additions and 0 deletions
+2
View File
@@ -79,6 +79,7 @@ docker_build('grafana-fs-dev',
# Paths relative to the docker context (root of the repo)
only=[
'devenv/frontend-service/build/grafana',
'devenv/frontend-service/provisioning',
'conf/defaults.ini',
'public/emails',
'public/views',
@@ -96,6 +97,7 @@ docker_build('grafana-fs-dev',
sync('../../public/dashboards', '/grafana/public/dashboards'),
sync('../../public/app/plugins', '/grafana/public/app/plugins'),
sync('../../public/build/assets-manifest.json', '/grafana/public/build/assets-manifest.json'),
sync('./provisioning', '/ignore/provisioning'), # Just to trigger a restart instead of rebuild
restart_container()
]
)
@@ -21,6 +21,9 @@ services:
entrypoint: ['bin/grafana', 'server']
volumes:
- backend-data:/grafana/data
- ./provisioning/datasources:/grafana/conf/provisioning/datasources
- ./provisioning/dashboards:/grafana/conf/provisioning/dashboards
- ../dev-dashboards:/grafana/conf/dev-dashboards
environment:
GF_SERVER_CDN_URL: http://localhost:3010
GF_FEATURE_TOGGLES_ENABLE: multiTenantFrontend
@@ -0,0 +1,13 @@
apiVersion: 1
providers:
- name: 'gdev dashboards'
folder: 'gdev dashboards'
folderUid: ''
type: file
allowUiUpdates: false
updateIntervalSeconds: 3600
options:
# This path is relative to the WORKDIR in the docker container. It is mounted
# in the docker-compose.yml file.
path: conf/dev-dashboards
@@ -0,0 +1,9 @@
apiVersion: 1
prune: true
datasources:
# From devenv/datasources.yaml
- name: Testdata
uid: PD8C576611E62080A
type: grafana-testdata-datasource