From db0bcdd0e6ec44cf405cdec53e258b5d3850426f Mon Sep 17 00:00:00 2001 From: ValarDragon Date: Tue, 13 Nov 2018 22:05:15 -0800 Subject: [PATCH 1/3] update ubuntu install script --- scripts/install_sdk_ubuntu.sh | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/scripts/install_sdk_ubuntu.sh b/scripts/install_sdk_ubuntu.sh index e8a6a75e3c..8e16513260 100644 --- a/scripts/install_sdk_ubuntu.sh +++ b/scripts/install_sdk_ubuntu.sh @@ -3,27 +3,24 @@ # XXX: this script is intended to be run from # a fresh Digital Ocean droplet with Ubuntu -# upon its completion, you must either reset -# your terminal or run `source ~/.profile` - # change this to a specific release or branch -BRANCH=master +BRANCH=v0.26.0 sudo apt-get update -y sudo apt-get upgrade -y sudo apt-get install -y make # get and unpack golang -curl -O https://storage.googleapis.com/golang/go1.10.linux-amd64.tar.gz -tar -xvf go1.10.linux-amd64.tar.gz +curl -O https://dl.google.com/go/go1.11.2.linux-amd64.tar.gz +tar -xvf go1.11.2.linux-amd64.tar.gz # move go binary and add to path mv go /usr/local echo "export PATH=\$PATH:/usr/local/go/bin" >> ~/.profile -# create the goApps directory, set GOPATH, and put it on PATH -mkdir goApps -echo "export GOPATH=/root/goApps" >> ~/.profile +# create the go directory, set GOPATH, and put it on PATH +mkdir go +echo "export GOPATH=/root/go" >> ~/.profile echo "export PATH=\$PATH:\$GOPATH/bin" >> ~/.profile source ~/.profile @@ -35,7 +32,8 @@ cd $GOPATH/src/$REPO # build & install master git checkout $BRANCH -make get_tools -make get_vendor_deps -make install -make install_examples +LEDGER_ENABLED=false make get_tools +LEDGER_ENABLED=false make get_vendor_deps +LEDGER_ENABLED=false make install + +source ~/.profile \ No newline at end of file From 269415908c024ba38a11384cb3d1104a729efa65 Mon Sep 17 00:00:00 2001 From: ValarDragon Date: Wed, 14 Nov 2018 11:05:48 -0800 Subject: [PATCH 2/3] change branch to master --- scripts/install_sdk_ubuntu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install_sdk_ubuntu.sh b/scripts/install_sdk_ubuntu.sh index 8e16513260..0559b84062 100644 --- a/scripts/install_sdk_ubuntu.sh +++ b/scripts/install_sdk_ubuntu.sh @@ -4,7 +4,7 @@ # a fresh Digital Ocean droplet with Ubuntu # change this to a specific release or branch -BRANCH=v0.26.0 +BRANCH=master sudo apt-get update -y sudo apt-get upgrade -y From be53c7c706781b06bc5b5dc396ca366278110c25 Mon Sep 17 00:00:00 2001 From: zramsay Date: Wed, 14 Nov 2018 15:14:13 -0500 Subject: [PATCH 3/3] install script, go version variable --- scripts/install_sdk_ubuntu.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/install_sdk_ubuntu.sh b/scripts/install_sdk_ubuntu.sh index 0559b84062..76ae4e390b 100644 --- a/scripts/install_sdk_ubuntu.sh +++ b/scripts/install_sdk_ubuntu.sh @@ -5,14 +5,17 @@ # change this to a specific release or branch BRANCH=master +REPO=github.com/cosmos/cosmos-sdk + +GO_VERSION=1.11.2 sudo apt-get update -y sudo apt-get upgrade -y sudo apt-get install -y make # get and unpack golang -curl -O https://dl.google.com/go/go1.11.2.linux-amd64.tar.gz -tar -xvf go1.11.2.linux-amd64.tar.gz +curl -O https://dl.google.com/go/go$GO_VERSION.linux-amd64.tar.gz +tar -xvf go$GO_VERSION.linux-amd64.tar.gz # move go binary and add to path mv go /usr/local @@ -26,7 +29,6 @@ echo "export PATH=\$PATH:\$GOPATH/bin" >> ~/.profile source ~/.profile # get the code and move into repo -REPO=github.com/cosmos/cosmos-sdk go get $REPO cd $GOPATH/src/$REPO @@ -36,4 +38,4 @@ LEDGER_ENABLED=false make get_tools LEDGER_ENABLED=false make get_vendor_deps LEDGER_ENABLED=false make install -source ~/.profile \ No newline at end of file +source ~/.profile