forked from mrsiano/openshift-grafana
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (27 loc) · 807 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM centos:centos7
MAINTAINER Eldad Marciano "[email protected]"
ENV GOPATH /root/go
RUN curl --silent --location https://rpm.nodesource.com/setup_6.x | bash -
RUN yum install -y --nogpgcheck \
initscripts \
curl \
tar \
gcc \
libc6-dev \
git \
go \
nodejs \
bzip2 \
bzip2-libs;
RUN mkdir -p $GOPATH/src/github.com/grafana && \
cd $GOPATH/src/github.com/grafana && pwd && \
git clone https://github.com/mrsiano/grafana.git && \
cd grafana && pwd && git branch -a && \
git checkout generic_oauth;
RUN cd $GOPATH/src/github.com/grafana/grafana && \
go run build.go setup && \
go run build.go build && \
npm install -g yarn && \
yarn install --pure-lockfile && \
npm run build;
WORKDIR /root/go/src/github.com/grafana/grafana