mirror of
https://github.com/grafana/grafana.git
synced 2025-01-07 22:53:56 -06:00
Updated docker build, added test container script, added docker readme
This commit is contained in:
parent
8aef2c13ec
commit
1d86d4b94f
31
docker/production/README.md
Normal file
31
docker/production/README.md
Normal file
@ -0,0 +1,31 @@
|
||||
|
||||
# Grafana docker image
|
||||
|
||||
This container currently only contains the in development alpha of Grafana 2.0 (ie non production use). The
|
||||
`#develop` tag is constantly updated as we make progress torwards a beta release.
|
||||
|
||||
|
||||
## Running your Grafana image
|
||||
--------------------------
|
||||
|
||||
Start your image binding the external port `3000`.
|
||||
|
||||
docker run -i -p 3000:3000 grafana/grafana
|
||||
|
||||
Try it out, default admin user is admin/admin.
|
||||
|
||||
|
||||
## Configuring your Grafana container
|
||||
|
||||
All options defined in conf/grafana.ini can be overriden using environment variables, for example:
|
||||
|
||||
|
||||
```
|
||||
docker run -i -p 3000:3000 \
|
||||
-e "GF_SERVER_ROOT_URL=http://grafana.server.name" \
|
||||
-e "GF_SECURITY_ADMIN_PASSWORD=secret \
|
||||
grafana/grafana:develop
|
||||
```
|
||||
|
||||
|
||||
|
@ -5,7 +5,7 @@ cd ../../
|
||||
|
||||
go run build.go build
|
||||
|
||||
npm grunt release
|
||||
grunt release
|
||||
|
||||
docker build --tag "grafana/grafana:develop" .
|
||||
|
||||
|
5
docker/production/test_container.sh
Executable file
5
docker/production/test_container.sh
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker run -i -p 3001:3000 \
|
||||
-e "GF_SERVER_ROOT_URL=http://grafana.server.name" \
|
||||
grafana/grafana:develop
|
Loading…
Reference in New Issue
Block a user