Updated docker build, added test container script, added docker readme

This commit is contained in:
Torkel Ödegaard 2015-02-13 14:18:37 +01:00
parent 8aef2c13ec
commit 1d86d4b94f
3 changed files with 37 additions and 1 deletions

View 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
```

View File

@ -5,7 +5,7 @@ cd ../../
go run build.go build
npm grunt release
grunt release
docker build --tag "grafana/grafana:develop" .

View 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