فهرست منبع

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

Torkel Ödegaard 11 سال پیش
والد
کامیت
1d86d4b94f
3فایلهای تغییر یافته به همراه37 افزوده شده و 1 حذف شده
  1. 31 0
      docker/production/README.md
  2. 1 1
      docker/production/build.sh
  3. 5 0
      docker/production/test_container.sh

+ 31 - 0
docker/production/README.md

@@ -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
+```
+
+
+

+ 1 - 1
docker/production/build.sh

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

+ 5 - 0
docker/production/test_container.sh

@@ -0,0 +1,5 @@
+#!/bin/bash
+
+docker run -i -p 3001:3000 \
+  -e "GF_SERVER_ROOT_URL=http://grafana.server.name"  \
+  grafana/grafana:develop