Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Commit 23f9402

Browse files
authored
Merge pull request #1 from ClumsyPotato/local-dev
Local dev
2 parents 3f14fca + 2b8ff3a commit 23f9402

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,22 @@ A data source backend plugin consists of both frontend and backend components.
5858
mage -l
5959
```
6060

61+
### Local Development
62+
63+
Set environment variables
64+
```
65+
PLUGIN_REPO = local path to cloned repo
66+
GIT_SSH_KEY = path to private git sshkey
67+
```
68+
69+
Build frontend and backend and start docker-compose
70+
71+
```
72+
docker-compose up
73+
```
74+
75+
Under datasources the Grafana Dashboard Plugin Sync should be available now
76+
6177
## Learn more
6278

6379
- [Build a data source backend plugin tutorial](https://grafana.com/tutorials/build-a-data-source-backend-plugin)

docker-compose.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
grafana:
2+
image: grafana/grafana:8.1.2
3+
container_name: grafana-vhv
4+
environment:
5+
- GF_PANELS_DISABLE_SANITIZE_HTML=TRUE
6+
- GF_SECURITY_ADMIN_PASSWORD=demo
7+
- GF_PATHS_PROVISIONING=/usr/share/grafana/custom/
8+
- GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=novatec-dashboardsync-datasource
9+
- SSH_KNOWN_HOSTS=github.com
10+
- GF_ALLOWED_ORIGINS="http://localhost:3000"
11+
volumes:
12+
- ${PLUGIN_REPO}:/var/lib/grafana/plugins
13+
- ${GIT_SSH_KEY}:/usr/share/grafana/.GF_PANELS_DISABLE_SANITIZE_HTML
14+
ports:
15+
- 3001:3000

0 commit comments

Comments
 (0)