Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
64 lines (52 sloc) 2.16 KB

Grafana (armhf)

Debian

Fedora/CentOS

Build

Tested with Grafana v3.0.4 on 2016-06-06.

# update gcc and g++ (run once per build environment)
update-alternatives --remove-all gcc
update-alternatives --remove-all g++
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 20
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 50
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.6 20
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 50
update-alternatives --config gcc
update-alternatives --config g++

# install phantomjs globally to v2.1.1 (run once per build environment, until dep. version changes)
git clone https://github.com/shabadoo75/phantomjs-2.1.1-raspberrypi-armv7
cp phantomjs-2.1.1-raspberrypi-armv7/phantomjs /usr/bin/
# make sure libicu48 is installed, https://packages.debian.org/wheezy/armhf/libicu48/download

# get sources
export VERSION=v3.0.4
gvm use go1.5
gvm pkgset create grafana
gvm pkgset use grafana
cd ~/.gvm/pkgsets/go1.5/grafana
export GOPATH=`pwd`
go get github.com/grafana/grafana || go get -u github.com/grafana/grafana
cd $GOPATH/src/github.com/grafana/grafana
git checkout $VERSION

# build
go run build.go setup
$GOPATH/bin/godep restore
npm install npm -g
npm install
npm install -g grunt-cli
npm rebuild node-sass
go run build.go build package

Install (Debian)

dpkg -i dist/*.deb

References