Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved installation guide #684

Merged
merged 7 commits into from
Feb 23, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 31 additions & 31 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,64 +1,65 @@
# Changelog

[comment]: <> (## Unreleased Changes)
## Unreleased Changes

[comment]: <> (> [high level summary])
> [high level summary]

[comment]: <> (### FEATURES)
### FEATURES

[comment]: <> (- [ibc])
- [ibc]

[comment]: <> ( - [nothing yet])
- [nothing yet]

[comment]: <> (- [ibc-relayer])
- [ibc-relayer]

[comment]: <> ( - [nothing yet])
- [nothing yet]

[comment]: <> (- [ibc-relayer-cli])
- [ibc-relayer-cli]

[comment]: <> ( - [nothing yet])
- [nothing yet]

[comment]: <> (### IMPROVEMENTS)
### IMPROVEMENTS

[comment]: <> (- [ibc])
- [ibc]

[comment]: <> ( - [nothing yet])
- [nothing yet]

[comment]: <> (- [ibc-relayer])
- [ibc-relayer]

[comment]: <> ( - [nothing yet])
- [nothing yet]

[comment]: <> (- [ibc-relayer-cli])
- [ibc-relayer-cli]

[comment]: <> ( - [nothing yet])
- [nothing yet]

[comment]: <> (### BUG FIXES)
### BUG FIXES

[comment]: <> (- [ibc])
- [ibc]

[comment]: <> ( - [nothing yet])
- [nothing yet]

[comment]: <> (- [ibc-relayer])
- [ibc-relayer]

[comment]: <> ( - [nothing yet])
- [nothing yet]

[comment]: <> (- [ibc-relayer-cli])
- [ibc-relayer-cli]
- Hermes guide: improved installation guideline ([#672])

[comment]: <> ( - [nothing yet])
### BREAKING CHANGES

[comment]: <> (### BREAKING CHANGES)
- [ibc]

[comment]: <> (- [ibc])
- [nothing yet]

[comment]: <> ( - [nothing yet])
- [ibc-relayer]

[comment]: <> (- [ibc-relayer])
- [nothing yet]

[comment]: <> ( - [nothing yet])
- [ibc-relayer-cli]

[comment]: <> (- [ibc-relayer-cli])
- [nothing yet]

[comment]: <> ( - [nothing yet])
[#672]: https://github.com/informalsystems/ibc-rs/issues/672

## v0.1.1
*February 17, 2021*
Expand Down Expand Up @@ -117,7 +118,6 @@ involving packet acks in a 3-chain setup. More details below.
[#643]: https://github.com/informalsystems/ibc-rs/issues/643
[#665]: https://github.com/informalsystems/ibc-rs/issues/665
[#671]: https://github.com/informalsystems/ibc-rs/pull/671
[#672]: https://github.com/informalsystems/ibc-rs/issues/672
[#682]: https://github.com/informalsystems/ibc-rs/issues/682

## v0.1.0
Expand Down
2 changes: 1 addition & 1 deletion guide/src/help.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ For this purpose, we recommend a few ideas that could be of help:
- [patch][patching] your local gaia chain(s) to enable some corner-case methods
(e.g., channel close);

And if the above do not help:
And if the above options do not address your specific problem:
- you can [request a new feature][feature];
- or consult the [list of reported issues][issues] and search by relevant
keywords to see if you're dealing with a known problem;
Expand Down
80 changes: 77 additions & 3 deletions guide/src/installation.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,69 @@
# Install the relayer

In order to install and run Hermes, please follow the steps below:
There are two main approaches for obtaining Hermes:

> NOTE: This assumes you have installed all the [pre-requisites](./pre_requisites.md) on your machine.
1. Installation:
1. If you are running on a Unix machine (Linux/MacOS), then the simplest
option is to [download the latest binary](#Install-by-downloading).
2. Alternatively, install via
[Cargo installation instructions](#install-via-cargo).
adizere marked this conversation as resolved.
Show resolved Hide resolved

[comment]: <> ( Regardless of approach you choose, also follow the post-installation)

[comment]: <> ( instructions therein.)
adizere marked this conversation as resolved.
Show resolved Hide resolved

2. Alternatively, [build Hermes directly from source](#build-from-source).


## Install by downloading

Simply head to the GitHub [Releases][releases] page download the latest version
of Hermes binary matching your platform:
- `hermes-v0.1.1-x86_64-apple-darwin.tar.gz` (or .zip) for MacOS,
- `hermes-v0.1.1-x86_64-unknown-linux-gnu.tar.gz` (or .zip) for Linux.

The step-by-step instruction below should carry you through the whole process:

1. Make the directory where we'll place the binary:
```shell
mkdir $HOME/.hermes/
adizere marked this conversation as resolved.
Show resolved Hide resolved
```

2. Extract the binary archive:
```shell
tar -C $HOME/.hermes/ -vxzf $ARCHIVE_NAME
adizere marked this conversation as resolved.
Show resolved Hide resolved
```

3. Update your path:
```shell
export PATH="$HOME/.hermes:$PATH"
adizere marked this conversation as resolved.
Show resolved Hide resolved
```

> NOTE: The binary may be initially prevented from running if you're
> on MacOS.
> See the ["Open Anyway" instructions from this support forum][developer-app]
> if that is the case.

You should now be able to run Hermes by invoking the `hermes` executable.

```shell
hermes version
```

```
hermes 0.1.1
```

## Install via Cargo

> NOTE: This approach assume you have installed all
> the [pre-requisites](./pre_requisites.md) on your machine.

Hermes is packaged in the `ibc-relayer-cli` Rust crate.
To install the latest release of Hermes, run the following command in a terminal:

```shell
cargo install ibc-relayer-cli
cargo install ibc-relayer-cli --bin hermes
```

This will download and build the crate `ibc-relayer-cli`, and install the
Expand All @@ -35,6 +88,15 @@ hermes version
hermes 0.1.1
```


__Troubleshooting__:
In case the `cargo install` command above fails, as a first course of action we
recommend trying to run the same command with the additional `locked` flag:

```shell
cargo install ibc-relayer-cli --bin hermes --locked
```

romac marked this conversation as resolved.
Show resolved Hide resolved
## Build from source

### Clone the repository
Expand Down Expand Up @@ -75,6 +137,14 @@ If the build is successful, the `hermes` executable will be located in the follo
./target/release/hermes
```

__Troubleshooting__:
In case the `cargo build` command above fails, as a first course of action we
recommend trying to run the same command with the additional `locked` flag:

```shell
cargo build --release --bin hermes --locked
```

### Running for the first time

If you run the `hermes` without any additional parameters you should see the usage and help information:
Expand Down Expand Up @@ -113,3 +183,7 @@ alias hermes='cargo run --release --bin hermes --'
### Next Steps

Go to the [`Configuration`](./config.md) section to learn how to create a configuration file to be used by Hermes.


[releases]: https://github.com/informalsystems/ibc-rs/releases
[developer-app]: https://support.apple.com/en-gb/HT202491