Add grafana stuff

This commit is contained in:
2016-07-07 10:55:40 +02:00
parent 4d8ad0ed72
commit 6abf147cca
3 changed files with 27 additions and 15 deletions
+10 -9
View File
@@ -1,13 +1,13 @@
FROM ubuntu:14.04
MAINTAINER Gregory Eremin <g@erem.in>
LABEL app="grafana"
LABEL version="3.0.4"
LABEL version="3.1.0-beta1"
LABEL github="https://github.com/grafana/grafana"
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get install -y curl make git nodejs npm
RUN apt-get install -y curl make git build-essential
RUN cd /tmp && curl -O https://storage.googleapis.com/golang/go1.6.linux-amd64.tar.gz
WORKDIR /tmp
@@ -21,18 +21,19 @@ RUN go env
RUN go get -d -v github.com/grafana/grafana || true
WORKDIR /go/src/github.com/grafana/grafana
RUN git checkout v3.0.4
RUN git checkout v3.1.0-beta1
RUN go run build.go setup
RUN rm -rf Godeps/_workspace
RUN godep restore
RUN go run build.go build
RUN curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
RUN apt-get install -y nodejs
RUN node -v
RUN npm -v
RUN npm install
RUN npm run build
# COPY configs/carbon.toml /etc/carbon.toml
# COPY configs/storage-schemas.conf /etc/storage-schemas.conf
# RUN mkdir -p /data/graphite/whisper
# EXPOSE 2003 2004 7002
# ENTRYPOINT ./go-carbon -config=/etc/carbon.toml
ENTRYPOINT sleep 1000
EXPOSE 3000
ENTRYPOINT ./bin/grafana-server