Skip to content

Commit

Permalink
Merge PR #2803: Update ubuntu install script
Browse files Browse the repository at this point in the history
  • Loading branch information
cwgoes authored Nov 15, 2018
2 parents d40d767 + be53c7c commit 7f68cee
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions scripts/install_sdk_ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,39 @@
# 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
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://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/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
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

# get the code and move into repo
REPO=github.com/cosmos/cosmos-sdk
go get $REPO
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

0 comments on commit 7f68cee

Please sign in to comment.