No description, website, or topics provided.
Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
conf
.gitignore
.travis.yml
README.md
icon.png
icon256x256.png
snapcraft.yaml

README.md

snapcraft-grafana

The purpose is to use snapcraft to build the grafana as snap package.

Snap Status

Requirement

You need to have a go 1.8+ environment by using gvm for go version control:

bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
source ~/.gvm/scripts/gvm
gvm install go1.8.3
gvm use go1.8.3 --default

Importantly, installing snapcraft:

sudo apt-get update
sudo apt-get install snapcraft

Install nvm (Use LTS Release)

curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install nodejs

How to build

Run snapcraft to build a snap.

How to rebuild

snapcraft clean
snapcraft

Phantomjs issue for building armhf arch

For armhf, I hit the phantomjs build failed with compiling the grafana,
and I forked the phantomjs to work around errors by refering this link [2]. After getting a successful compilation of phantomjs, just copy binary
bin/phantomjs to /usr/bin.

To fork my works:

git clone git@github.com:woodrow-shen/phantomjs.git

[1] https://tecadmin.net/install-latest-nodejs-npm-on-ubuntu
[2] https://github.com/aeberhardo/phantomjs-linux-armv6l