https://github.com/simonswine/grafana-local-dev
Local development environment for Grafana and friends
https://github.com/simonswine/grafana-local-dev
Last synced: 3 months ago
JSON representation
Local development environment for Grafana and friends
- Host: GitHub
- URL: https://github.com/simonswine/grafana-local-dev
- Owner: simonswine
- License: apache-2.0
- Created: 2020-07-21T13:26:29.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-13T17:50:37.000Z (over 4 years ago)
- Last Synced: 2025-03-15T16:48:49.574Z (3 months ago)
- Language: Jsonnet
- Size: 31.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Local dev
This is an initial attempt for local development. It is heavily based on
[jsonnet], [tanka] and [docker-compose]## Prerequisites
- environment exported as defined by [.envrc](./.envrc) or [direnv]
- golang
- bash
- docker-compose## Docker compose environments
* [jsonnet/docker-compose/cortex](./jsonnet/docker-compose/cortex/main.jsonnet)
```bash
# jdc is a wrapper around docker-compose and allows to use jsonnet to specify
# docker-compose config and can be used like this
# jdc# Create environment and watch logs
jdc jsonnet/docker-compose/cortex/main.jsonnet up[...]
# Same in the background
jdc jsonnet/docker-compose/cortex/main.jsonnet up -d# Now override cortex-mixin with local version
export JSONNET_PATH=$HOME/git/github.com/grafana/cortex-jsonnet:$JSONNET_PATH# Restart containers
jdc jsonnet/docker-compose/cortex/main.jsonnet restart
```[tanka]:https://tanka.dev
[jsonnet]:https://jsonnet.org/
[docker-compose]:https://docs.docker.com/compose/
[direnv]:https://direnv.net/