Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

speedup grafana install by precompiling go-sqlite3 #24

Open
Dieterbe opened this issue Jul 6, 2015 · 0 comments
Open

speedup grafana install by precompiling go-sqlite3 #24

Dieterbe opened this issue Jul 6, 2015 · 0 comments

Comments

@Dieterbe
Copy link
Contributor

Dieterbe commented Jul 6, 2015

this:

dieter@dieter-m6800 raintank-docker git diff setup_dev.sh 
diff --git a/setup_dev.sh b/setup_dev.sh
index 9987650..52efa78 100755
--- a/setup_dev.sh
+++ b/setup_dev.sh
@@ -71,4 +71,8 @@ elif [ $MODE == "code" ]; then
        echo "> grafana > grunt"
        grunt

+  echo "> grafana > precompile sqlite3"
+  # avoid sqlite3 recompile every build. significant speedup.
+  find / -name go-sqlite3
+  GOPATH=/opt/raintank/grafana/Godeps/_workspace/ go install -v github.com/mattn/go-sqlite3
 fi

causes:

# github.com/grafana/grafana/pkg/services/sqlstore/migrator
../../grafana/grafana/pkg/services/sqlstore/migrator/migrator.go:10: import /go/src/github.com/raintank/grafana/Godeps/_workspace/pkg/linux_amd64/github.com/mattn/go-sqlite3.a: object is [linux amd64 go1.4 X:precisestack] expected [linux amd64 go1.4.2 X:precisestack]
godep: go exit status 2
[Log] 15-07-06 22:42:56 [ WARN] Fail to execute command [godep go build -o ./bin/grafana-server]

first i noticed one of the scripts was getting go 1.4 instead of 1.4.2, which i fixed,
I then even forced everything on the same go version (dcaed01) but still getting this.

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

No branches or pull requests

1 participant