Skip to content

add quick start guide#1069

Merged
zramsay merged 9 commits intodevelopfrom
examples
Jan 9, 2018
Merged

add quick start guide#1069
zramsay merged 9 commits intodevelopfrom
examples

Conversation

@zramsay
Copy link
Contributor

@zramsay zramsay commented Jan 6, 2018

  • quick start guide for Tendermint
  • script for quick install on Ubuntu
  • default files for quick cluster creation

@codecov-io
Copy link

codecov-io commented Jan 6, 2018

Codecov Report

Merging #1069 into develop will increase coverage by 0.01%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop    #1069      +/-   ##
===========================================
+ Coverage    59.94%   59.96%   +0.01%     
===========================================
  Files          116      116              
  Lines        10748    10748              
===========================================
+ Hits          6443     6445       +2     
  Misses        3724     3724              
+ Partials       581      579       -2


## Overview

Tendermint is ...
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need this section in getting started?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's meant to be a one-liner filled in last. It's probably not needed but it's what was asked for


## Install

Note: Quick Start on a fresh machine can be done with [this script](https://gist.githubusercontent.com/zramsay/4bca8907a97ad825c30cfdc6f72ba97b/raw/b94bf36e34181a2960f9fe0d3eff260d03b6064e/install_tendermint.sh); tested on Ubuntu 16.04. It is used in the cluster deployment below.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's add a command to run

curl -L https://gist.githubusercontent.com/zramsay/4bca8907a97ad825c30cfdc6f72ba97b/raw/b94bf36e34181a2960f9fe0d3eff260d03b6064e/install_tendermint.sh | bash

or

curl -L https://git.io/vNTiV | bash

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: this link will change to refer to the file currently being check-in with this PR, however, that file should point to master branch, so that can wait until release

- `go` minimum version 1.9.2
- `$GOPATH` set and `$GOPATH/bin` on your $PATH (see https://github.com/tendermint/tendermint/wiki/Setting-GOPATH)

To create the `tendermint` binary, run:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To install Tendermint, run ?

Then, `ssh` into each machine, and `curl` then execute [this script](https://gist.githubusercontent.com/zramsay/4bca8907a97ad825c30cfdc6f72ba97b/raw/b94bf36e34181a2960f9fe0d3eff260d03b6064e/install_tendermint.sh):

```
curl -o tmint.sh https://gist.githubusercontent.com/zramsay/4bca8907a97ad825c30cfdc6f72ba97b/raw/b94bf36e34181a2960f9fe0d3eff260d03b6064e/install_tendermint.sh
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

curl -L https://git.io/vNTiV | bash

#!/usr/bin/env bash

# get and unpack golang
curl -O https://storage.googleapis.com/golang/go1.9.2.linux-amd64.tar.gz
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will not work for x86 and macOS... maybe we need an if OS == darwin

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i know, that's explicit in this line https://github.com/tendermint/tendermint/pull/1069/files#diff-efa5271fdabd2250b8d2dd60cfc5ff1dR9

This script is meant explicitly for a Ubuntu on a DO box. I'll make it clearer in the script itself

echo "export PATH=\$PATH:/usr/local/go/bin" >> ~/.profile

## create the GOPATH directory, set GOPATH and put on PATH
mkdir goApps
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this from official guides?

Copy link
Contributor Author

@zramsay zramsay Jan 8, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the official guide doesn't even set a $GOPATH, so no. AFAICT there is no standard for naming this directory (I've seen work, gocode, go, goApps etc, the list goes on)

curl -O https://storage.googleapis.com/golang/go1.9.2.linux-amd64.tar.gz
tar -xvf go1.9.2.linux-amd64.tar.gz

apt install make
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if no apt? what about yum?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see previous comment. it's not meant a multi-OS check-all-the-things scripts, but rather as a quick and dirty get-started-ASAP-on-Digital-OCean

cd $GOPATH/src/$REPO

## build
git checkout v0.15.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we need to check for git as well or install it above (apt-get install make git)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

git is already instaled on Ubnutn 16.04


This will install `go` and other dependencies, get the Tendermint source code, then compile the `tendermint` binary.

Next, `cd` into `docs/examples`. Each command below should be run from each node, in sequence:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we just run tendermint node --home ./nodeN --proxy_app=dummy --p2p.seeds IP1:46656,IP2:46656,IP3:46656,IP4:46656 on each node?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure but that's more text, and will lead to more Error can't connect to peer than otherwise

@zramsay zramsay merged commit c521f38 into develop Jan 9, 2018
@zramsay zramsay deleted the examples branch January 9, 2018 20:35
zramsay added a commit that referenced this pull request Jan 10, 2018
ebuchman pushed a commit that referenced this pull request Jan 20, 2018
Cashmaney pushed a commit to scrtlabs/tendermint that referenced this pull request Aug 2, 2023
…dermint#1069)

Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 2.7.0 to 2.8.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](docker/setup-buildx-action@v2.7.0...v2.8.0)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants