Browse Source

Update grafana to 6.2.0-beta1 and use Go modules build

master
Andreas Linz 1 year ago
parent
commit
14421e8d0a
Signed by: alinz GPG Key ID: 9BF39809C9DA580C
1 changed files with 14 additions and 5 deletions
  1. +14
    -5
      build/grafana/Makefile

+ 14
- 5
build/grafana/Makefile View File

@ -1,14 +1,23 @@
.PHONY: grafana clean
VERSION:=5.4.3
VERSION :=v6.2.0-beta1
GRAFANA_SRC :=grafana-src-$(VERSION)
all: grafana
grafana: $(GRAFANA_SRC) checkout-version
cd $(GRAFANA_SRC) && go run build.go build
mkdir -p $@
cp -r $(GRAFANA_SRC)/bin/linux-amd64 $@/bin
cp -r $(GRAFANA_SRC)/conf $@/
cp -r $(GRAFANA_SRC)/public $@/
grafana: grafana-$(VERSION)
ln -sfn $< $@
grafana-$(VERSION):
curl -Lsf 'https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-$(VERSION).linux-amd64.tar.gz' | tar -xvzf -
$(GRAFANA_SRC):
git clone https://github.com/grafana/grafana.git $@
checkout-version: $(GRAFANA_SRC)
cd $(GRAFANA_SRC) && git checkout --force --quiet $(VERSION)
clean:
rm -f "grafana*"

Loading…
Cancel
Save