You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
782 B

  1. #!/usr/bin/env bash
  2. # XXX: this script is meant to be used only on a fresh Ubuntu 16.04 instance
  3. # and has only been tested on Digital Ocean
  4. # get and unpack golang
  5. curl -O https://storage.googleapis.com/golang/go1.9.2.linux-amd64.tar.gz
  6. tar -xvf go1.9.2.linux-amd64.tar.gz
  7. apt install make
  8. ## move go and add binary to path
  9. mv go /usr/local
  10. echo "export PATH=\$PATH:/usr/local/go/bin" >> ~/.profile
  11. ## create the GOPATH directory, set GOPATH and put on PATH
  12. mkdir goApps
  13. echo "export GOPATH=/root/goApps" >> ~/.profile
  14. echo "export PATH=\$PATH:\$GOPATH/bin" >> ~/.profile
  15. source ~/.profile
  16. ## get the code and move into it
  17. REPO=github.com/tendermint/tendermint
  18. go get $REPO
  19. cd $GOPATH/src/$REPO
  20. ## build
  21. git checkout v0.15.0
  22. make get_tools
  23. make get_vendor_deps
  24. make install