Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrostr committed May 13, 2022
1 parent cc27f58 commit 8c71f6d
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# Full Node of mainnet

## goal
# Set up a node of Ethereum mainnet in 5 minutes

spins up a geth node for ethereum chain using provisioning tools

### requirements
## requirements

env vars:

Expand All @@ -21,11 +19,12 @@ export TF_VAR_REGION=""
- jq (for parsing json)
- ssh keys (`~/.ssh/id_rsa` and `~/.ssh/id_rsa.pub`)

### setup
## setup

get an ip address alocated and append to ansible hosts, export the address to env

```bash
git clone https://github.com/piotrostr/eth-mainnet-light-node
aws ec2 allocate-address > /etc/allocated-address
export NODE_IP=$(cat /etc/allocated-address | jq -r ".PublicIp")
export TF_VAR_ALLOCATION_ID=$(cat /etc/allocated-address | jq -r ".AllocationId")
Expand All @@ -35,7 +34,7 @@ echo $NODE_IP >> /etc/ansible/hosts
in case one would prefer to maintain the same address, the setting of the `NODE_IP`
and `TF_VAR_ALLOCATION_ID` variables can be appended to ~/.profile or ~/.bashrc

### usage
## usage

start and setup the instance

Expand All @@ -58,7 +57,7 @@ then, you can pull data from the chain by calling
curl http://$NODE_IP:8545/
```

### cleanup
## cleanup

cleanup after the ip address, destroy the resources

Expand All @@ -71,6 +70,6 @@ rm /etc/allocated-address

and dont forget to remove the host `$(echo $NODE_IP)` from `/etc/ansible/hosts`

### License
## License

[MIT](https://github.com/piotrostr/bsc-full-node/blob/main/LICENSE)

0 comments on commit 8c71f6d

Please sign in to comment.