From 7e022112462f3ac2efe6ef7dc9d6ca05e985cdae Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Thu, 12 Dec 2019 12:11:28 +0400 Subject: [PATCH] scripts: remove install scripts (#4242) Closes #4202 - nobody's supporting them - users who want to try TM should use pre-build binaries - devs should be able to install using git clone (or use Vagrant) - validators don't use them (my guess) --- docs/introduction/install.md | 20 ++++---- scripts/install/install_tendermint_arm.sh | 39 -------------- scripts/install/install_tendermint_bsd.sh | 54 -------------------- scripts/install/install_tendermint_osx.sh | 40 --------------- scripts/install/install_tendermint_ubuntu.sh | 48 ----------------- 5 files changed, 11 insertions(+), 190 deletions(-) delete mode 100644 scripts/install/install_tendermint_arm.sh delete mode 100644 scripts/install/install_tendermint_bsd.sh delete mode 100644 scripts/install/install_tendermint_osx.sh delete mode 100644 scripts/install/install_tendermint_ubuntu.sh diff --git a/docs/introduction/install.md b/docs/introduction/install.md index 0bf334bb3..b94230cc1 100644 --- a/docs/introduction/install.md +++ b/docs/introduction/install.md @@ -4,13 +4,6 @@ order: 3 # Install Tendermint -The fastest and easiest way to install the `tendermint` binary -is to run [this script](https://github.com/tendermint/tendermint/blob/master/scripts/install/install_tendermint_ubuntu.sh) on -a fresh Ubuntu instance, -or [this script](https://github.com/tendermint/tendermint/blob/master/scripts/install/install_tendermint_bsd.sh) -on a fresh FreeBSD instance. Read the comments / instructions carefully (i.e., reset your terminal after running the script, -make sure you are okay with the network connections being made). - ## From Binary To download pre-built binaries, see the [releases page](https://github.com/tendermint/tendermint/releases). @@ -19,6 +12,7 @@ To download pre-built binaries, see the [releases page](https://github.com/tende You'll need `go` [installed](https://golang.org/doc/install) and the required environment variables set, which can be done with the following commands: + ```bash echo export GOPATH=\"\$HOME/go\" >> ~/.bash_profile echo export PATH=\"\$PATH:\$GOPATH/bin\" >> ~/.bash_profile @@ -54,9 +48,17 @@ make build to put the binary in `./build`. -_DISCLAIMER_ The binary of tendermint is build/installed without the DWARF symbol table. If you would like to build/install tendermint with the DWARF symbol and debug information, remove `-s -w` from `BUILD_FLAGS` in the make file. +_DISCLAIMER_ The binary of tendermint is build/installed without the DWARF +symbol table. If you would like to build/install tendermint with the DWARF +symbol and debug information, remove `-s -w` from `BUILD_FLAGS` in the make +file. + +The latest tendermint is now installed. You can verify the installation by +running: -The latest `tendermint version` is now installed. +``` +tendermint version +``` ## Run diff --git a/scripts/install/install_tendermint_arm.sh b/scripts/install/install_tendermint_arm.sh deleted file mode 100644 index f604e57e6..000000000 --- a/scripts/install/install_tendermint_arm.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env bash - -REPO=github.com/tendermint/tendermint - -# change this to a specific release or branch -BRANCH=master - -GO_VERSION=1.13 - -sudo apt-get update -y - -# get and unpack golang -curl -O https://storage.googleapis.com/golang/go$GO_VERSION.linux-armv6l.tar.gz -tar -xvf go$GO_VERSION.linux-armv6l.tar.gz - -# move go folder and add go binary to path -sudo mv go /usr/local -echo "export PATH=\$PATH:/usr/local/go/bin" >> ~/.profile - -# create the go directory, set GOPATH, and put it on PATH -mkdir go -echo "export GOPATH=$HOME/go" >> ~/.profile -echo "export PATH=\$PATH:\$GOPATH/bin" >> ~/.profile -source ~/.profile - -# get the code and move into repo -go get $REPO -cd "$GOPATH/src/$REPO" - -# build & install -git checkout $BRANCH -# XXX: uncomment if branch isn't master -# git fetch origin $BRANCH -make tools -make install - -# the binary is located in $GOPATH/bin -# run `source ~/.profile` or reset your terminal -# to persist the changes diff --git a/scripts/install/install_tendermint_bsd.sh b/scripts/install/install_tendermint_bsd.sh deleted file mode 100644 index 9f58c95cb..000000000 --- a/scripts/install/install_tendermint_bsd.sh +++ /dev/null @@ -1,54 +0,0 @@ -#!/usr/bin/tcsh - -# XXX: this script is intended to be run from -# a fresh Digital Ocean droplet with FreeBSD -# Just run tcsh install_tendermint_bsd.sh - -# upon its completion, you must either reset -# your terminal or run `source ~/.tcshrc` - -# This assumes your installing it through tcsh as root. -# Change the relevant lines from tcsh to csh if your -# installing as a different user, along with changing the -# gopath. - -# change this to a specific release or branch -set BRANCH=master -set REPO=github.com/tendermint/tendermint - -set GO_VERSION=1.13 - -sudo pkg update - -sudo pkg install -y gmake -sudo pkg install -y git - -# get and unpack golang -curl -O https://storage.googleapis.com/golang/go$GO_VERSION.freebsd-amd64.tar.gz -tar -xvf go$GO_VERSION.freebsd-amd64.tar.gz - -# move go folder and add go binary to path -sudo mv go /usr/local -set path=($path /usr/local/go/bin) - - -# create the go directory, set GOPATH, and put it on PATH -mkdir go -echo "setenv GOPATH /root/go" >> ~/.tcshrc -setenv GOPATH /root/go -echo "set path=($path $GOPATH/bin)" >> ~/.tcshrc - -source ~/.tcshrc - -# get the code and move into repo -go get $REPO -cd "$GOPATH/src/$REPO" - -# build & install master -git checkout $BRANCH -gmake tools -gmake install - -# the binary is located in $GOPATH/bin -# run `source ~/.profile` or reset your terminal -# to persist the changes diff --git a/scripts/install/install_tendermint_osx.sh b/scripts/install/install_tendermint_osx.sh deleted file mode 100644 index be2c4d0ec..000000000 --- a/scripts/install/install_tendermint_osx.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/env bash - -# XXX: this script is intended to be run from -# an MacOS machine - -# as written, this script will install -# tendermint core from master branch -REPO=github.com/tendermint/tendermint - -# change this to a specific release or branch -BRANCH=master - -if ! [ -x "$(command -v brew)" ]; then - echo 'Error: brew is not installed, to install brew' >&2 - echo 'follow the instructions here: https://docs.brew.sh/Installation' >&2 - exit 1 -fi - -if ! [ -x "$(command -v go)" ]; then - echo 'Error: go is not installed, to install go follow' >&2 - echo 'the instructions here: https://golang.org/doc/install#tarball' >&2 - echo 'ALSO MAKE SURE TO SETUP YOUR $GOPATH and $GOBIN in your ~/.profile: https://github.com/golang/go/wiki/SettingGOPATH' >&2 - exit 1 -fi - -if ! [ -x "$(command -v make)" ]; then - echo 'Make not installed, installing using brew...' - brew install make -fi - -# get the code and move into repo -go get $REPO -cd $GOPATH/src/$REPO - -# build & install -git checkout $BRANCH -# XXX: uncomment if branch isn't master -# git fetch origin $BRANCH -make tools -make install diff --git a/scripts/install/install_tendermint_ubuntu.sh b/scripts/install/install_tendermint_ubuntu.sh deleted file mode 100644 index 07acbd056..000000000 --- a/scripts/install/install_tendermint_ubuntu.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/usr/bin/env bash - -# 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` - -# as written, this script will install -# tendermint core from master branch -REPO=github.com/tendermint/tendermint - -# change this to a specific release or branch -BRANCH=master - -GO_VERSION=1.13 - -sudo apt-get update -y -sudo apt-get install -y make - -# get and unpack golang -curl -O https://storage.googleapis.com/golang/go$GO_VERSION.linux-amd64.tar.gz -tar -xvf go$GO_VERSION.linux-amd64.tar.gz - -# move go folder and add go binary to path -sudo mv go /usr/local -echo "export PATH=\$PATH:/usr/local/go/bin" >> ~/.profile - -# create the go directory, set GOPATH, and put it on PATH -mkdir go -echo "export GOPATH=$HOME/go" >> ~/.profile -echo "export PATH=\$PATH:\$GOPATH/bin" >> ~/.profile -source ~/.profile - -# get the code and move into repo -go get $REPO -cd "$GOPATH/src/$REPO" - -# build & install -git checkout $BRANCH -# XXX: uncomment if branch isn't master -# git fetch origin $BRANCH -make tools -make install - -# the binary is located in $GOPATH/bin -# run `source ~/.profile` or reset your terminal -# to persist the changes