Skip to content

Instantly share code, notes, and snippets.

@isaacdavis
Last active October 12, 2018 01:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaacdavis/6759a8438cbf922913223e9269af05ae to your computer and use it in GitHub Desktop.
Save isaacdavis/6759a8438cbf922913223e9269af05ae to your computer and use it in GitHub Desktop.
SmartOS Grafana build instructions

Build steps

  1. Set up SmartOS minimal-64 LTS zone (multiarch doesn't have golang in pkgsrc)
  2. pkgin in go git nodejs-8 build-essential
  3. Delete the phantomjs line from $GOPATH/src/github.com/grafana/grafana/package.json
  4. Build the backend: from the grafana directory, run go run build.go setup && go run build.go build
  5. Build the frontend: from the grafana directory, run npm install -g yarn && yarn install --pure-lockfile && yarn dev
  6. You can now run $GOPATH/bin/grafana-server and point your web browser at <grafana ip:3000>

The error about fsevents support may be fixed in the long run - see fsnotify/fsnotify#263.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment