create account

Run IRIS_Network Node and bacon a Validator. with Docker 2 commands no need install. by melea

View this thread on: hive.blogpeakd.comecency.com
· @melea · (edited)
Run IRIS_Network Node and bacon a Validator. with Docker 2 commands no need install.
![cosmoshub.png](https://cdn.steemitimages.com/DQmfWDqxR8K1j1RuoAD8sXxr6CBFBDojPHS1Jd7KKxbKNUq/cosmoshub.png)

 
# Hello, Today we are to build and run a node for the IRIShub Network the first Hub for Cosmos Network.

Using Docker no need install or buil IRIShub, just two commands and some setup.

![Screenshot from 2018-11-07 01-47-11.png](https://cdn.steemitimages.com/DQmbxdGEHGdYmg8oUQ7p1D69mfnUU8U5tGndkyjLGtbkUkN/Screenshot%20from%202018-11-07%2001-47-11.png)

Learn more about IRIShub Network

https://www.irisnet.org/

ok, let's Build, first need to install docker.

# Install Docker 
```
 sudo apt-get update
 curl -fsSL get.docker.com -o get-docker.sh
 sh get-docker.sh
```
Add your user to Docker Group
```
 sudo usermod -aG docker $(whoami)
```

Log out of your account and log back in

Docker Version = ok

Now that  Docker is installed, just run IRIShub-Docker
```
docker run -it -p 26657:26657 -p 26656:26656 -v $HOME/.iris:/root/.iris -v $HOME/.iris:/root/.iris irisnet/irishub:v0.4.2 iris init gen-tx --name=Write-Validatorian-Name-HERE
```
Permission to folders creates previously  
```
sudo chown cosmosseeddns4:sudo .iris/config

sudo chown cosmosseeddns4:sudo .iris/data
```
Open the folder
```
cd .iris/config
```
Download the Genesis File for Fuxy-3001 (the actual Genesis file, remember go to riot chat for the nexts genesis files.)
```
wget https://raw.githubusercontent.com/irisnet/testnets/master/fuxi/fuxi-3001/config/genesis.json
```

Edit config.toml,add seeds and verify moniker/Validatorian name is ok.
```
vi config.toml
```
*A custom human readable name for this node
moniker = "moniker-Validatorain-name"


*Comma-separated list of seed nodes to connect to
seeds = 
```
"c16700520a810b270206d59f0f02ea9abd85a4fe@35.165.232.141:26656,a12cfb2f535210ea12731f94a76b691832056156@120.79.226.163:26656"
```
Save the file and Start IRIShub
```
docker run -it -p 26657:26657 -p 26656:26656 -v $HOME/.iris:/root/.iris -v $HOME/.iris:/root/.iris irisnet/irishub:v0.4.2 iris start
```
When are sure that the node is donwloading the chain and its sync, fell free to close for run in detached mode.

For close CRL+C , For Run in detached mode add (-d) to the docker command. ;) the process is running on docker, can close session and back later the IRIShub is working meanwhile on docker.


For run the commands to IRIShub in docker just add ( --network="host" ) example:

```
docker run --network="host" irisnet/irishub:v0.4.2 iriscli -h
```
irishub light-client
```
Usage:
  iriscli [command]

Available Commands:
  init        Initialize light client
  status      Query remote node for status
  advanced    Advanced subcommands
              
  stake       Stake and validation subcommands
  gov         Governance and voting subcommands
  account     Query account balance
  send        Create and sign a send tx
  keys        Add or view local private keys
              
  version     Show version info
  params      Governance and voting subcommands
  help        Help about any command

Flags:
  -e, --encoding string   Binary encoding (hex|b64|btc) (default "hex")
  -h, --help              help for iriscli
      --home string       directory for config and data (default "/root/.iriscli")
  -o, --output string     Output format (text|json) (default "text")
      --trace             print out full stack trace on errors

Use "iriscli [command] --help" for more information about a command.

Example 
docker run --network="host" irisnet/irishub:v0.4.2 iriscli stake -h
```

Others Command to verify the IRIShub running in docker-locally 
```
docker run --network="host" irisnet/irishub:v0.4.2 iris version
v0.4.2
docker run --network="host" irisnet/irishub:v0.4.2 iriscli version
v0.4.2
```
Here
```
docker run --network="host" irisnet/irishub:v0.4.2 iriscli status
```

![Screenshot from 2018-11-07 00-25-54.png](https://cdn.steemitimages.com/DQmS8YhLazDKqZHpKvY1fPwHFBemEM7DLnHMfNN9n6VUjRp/Screenshot%20from%202018-11-07%2000-25-54.png)

# AKA iriscli status=
"catching_up":true = the node is downloading and is not full sync yet. When is "False" the node is full sync the last block.
"network":"fuxi-3001" = The actual network the node is connected.
"latest_block_height":"56217" The actual last block sync in this node.
"voting_power":"0"} the Validator is not working.

This others command can help for status and peers connected
```
curl http://localhost:26657/status
curl http://localhost:26657/net_info
```
# Congratulations here the node is working and now meanwhile is sync, can read this doc to be a validator and learn more about IRIShub.

![Screenshot from 2018-11-07 01-13-55.png](https://cdn.steemitimages.com/DQmdMXMwAW7FKqXGRTmTchMULWWg1V5xJh6dSCUbfPpbrQt/Screenshot%20from%202018-11-07%2001-13-55.png)

This for instructions about becoming a validator, creates accounts and transfers tokens.

https://github.com/irisnet/irishub/tree/master/docs/get-started
https://github.com/irisnet/irishub/blob/master/docs/get-started/Validator-Node.md

Here for claim free tokens
https://testnet.irisplorer.io/#/faucet

Here for see the last block, actives validators and more.
https://testnet.irisplorer.io/#/home




NOTE: if the node not sync, can go to riot chat and ask for some persistent peers or any other question.

https://riot.im/app/#/room/#irisvalidators:matrix.org

https://matrix.to/#/!bmimZgJrUWSmxqQEmG:matrix.org




![Screenshot from 2018-11-07 02-21-31.png](https://cdn.steemitimages.com/DQmPrivx2HbmgzhrDnuoXhChgrKTS8a6rXAqiHQJrQ88Jhr/Screenshot%20from%202018-11-07%2002-21-31.png)

Happy Validating.
properties (22)
authormelea
permlinkrun-irisnetwork-node-and-become-a-validator-with-docker-2-commands-no-need-install
categoryiris
json_metadata{"tags":["iris","nodes","blockchain","cosmos","blockproducer"],"image":["https://cdn.steemitimages.com/DQmfWDqxR8K1j1RuoAD8sXxr6CBFBDojPHS1Jd7KKxbKNUq/cosmoshub.png","https://cdn.steemitimages.com/DQmbxdGEHGdYmg8oUQ7p1D69mfnUU8U5tGndkyjLGtbkUkN/Screenshot%20from%202018-11-07%2001-47-11.png","https://cdn.steemitimages.com/DQmS8YhLazDKqZHpKvY1fPwHFBemEM7DLnHMfNN9n6VUjRp/Screenshot%20from%202018-11-07%2000-25-54.png","https://cdn.steemitimages.com/DQmdMXMwAW7FKqXGRTmTchMULWWg1V5xJh6dSCUbfPpbrQt/Screenshot%20from%202018-11-07%2001-13-55.png","https://cdn.steemitimages.com/DQmPrivx2HbmgzhrDnuoXhChgrKTS8a6rXAqiHQJrQ88Jhr/Screenshot%20from%202018-11-07%2002-21-31.png"],"links":["https://www.irisnet.org/","https://github.com/irisnet/irishub/tree/master/docs/get-started","https://github.com/irisnet/irishub/blob/master/docs/get-started/Validator-Node.md","https://testnet.irisplorer.io/#/faucet","https://testnet.irisplorer.io/#/home","https://riot.im/app/#/room/#irisvalidators:matrix.org","https://matrix.to/#/!bmimZgJrUWSmxqQEmG:matrix.org"],"app":"steemit/0.1","format":"markdown"}
created2018-11-07 01:25:15
last_update2018-11-07 05:14:09
depth0
children1
last_payout2018-11-14 01:25:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length5,560
author_reputation368,798,565,353
root_title"Run IRIS_Network Node and bacon a Validator. with Docker 2 commands no need install."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd0
post_id74,822,011
net_rshares0
@steemitboard ·
Congratulations @melea! You received a personal award!

<table><tr><td>https://steemitimages.com/70x70/http://steemitboard.com/@melea/birthday2.png</td><td>Happy Birthday! - You are on the Steem blockchain for 2 years!</td></tr></table>

<sub>_You can view [your badges on your Steem Board](https://steemitboard.com/@melea) and compare to others on the [Steem Ranking](https://steemitboard.com/ranking/index.php?name=melea)_</sub>


###### [Vote for @Steemitboard as a witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1) to get one more award and increased upvotes!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-melea-20190615t163829000z
categoryiris
json_metadata{"image":["https://steemitboard.com/img/notify.png"]}
created2019-06-15 16:38:30
last_update2019-06-15 16:38:30
depth1
children0
last_payout2019-06-22 16:38:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length608
author_reputation38,975,615,169,260
root_title"Run IRIS_Network Node and bacon a Validator. with Docker 2 commands no need install."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id86,685,086
net_rshares0