2019-02-13 22:45:53 +00:00
|
|
|
# Description
|
|
|
|
|
|
|
|
This role provisions a [Nimbus](https://nimbus.status.im/) installation that can act as an ETH2 network bootstrap node.
|
|
|
|
|
|
|
|
# Introduction
|
|
|
|
|
2019-03-21 21:08:55 +00:00
|
|
|
Each host can run multiple nodes installed as [docker containers](https://github.com/status-im/nimbus/docker).
|
|
|
|
TCP and UDP ports starting from 9000 will be exposed (e.g. 9000, 9001 and 9002 if you run 3 nodes).
|
2019-02-13 22:45:53 +00:00
|
|
|
|
|
|
|
# Installation
|
|
|
|
|
|
|
|
Add to your `requirements.yml` file:
|
|
|
|
```yaml
|
2019-03-23 08:59:44 +00:00
|
|
|
- name: infra-role-beacon-node
|
|
|
|
src: git+git@github.com:status-im/infra-role-beacon-node.git
|
|
|
|
scm: git
|
2019-02-13 22:45:53 +00:00
|
|
|
```
|
|
|
|
|
2019-03-23 08:58:00 +00:00
|
|
|
# Configuration
|
|
|
|
|
|
|
|
The crucial settings are:
|
|
|
|
```yaml
|
|
|
|
beacon_node_network: 'testnet0'
|
|
|
|
# optional setting for debug mode
|
2019-05-09 16:07:53 +00:00
|
|
|
beacon_node_log_level: DEBUG
|
2019-03-23 08:58:00 +00:00
|
|
|
```
|
|
|
|
|
2020-02-10 13:12:08 +00:00
|
|
|
# Usage
|
|
|
|
|
|
|
|
You can re-create containers on the host using:
|
|
|
|
```
|
2020-03-26 17:45:15 +00:00
|
|
|
cd /docker/beacon-node-testnet0-1
|
|
|
|
docker-compose --compatibility up -d --force-recreate
|
2020-02-10 13:12:08 +00:00
|
|
|
```
|
|
|
|
Which will use the `docker-compose.yml` file in that directory.
|
|
|
|
|
2020-11-03 13:58:09 +00:00
|
|
|
# Rebuilding
|
|
|
|
|
|
|
|
If you want to rebuild the image regularly you can enable it via:
|
|
|
|
```yaml
|
|
|
|
beacon_node_timer_rebuild: true
|
|
|
|
beacon_node_timer_frequency: 'daily'
|
|
|
|
```
|
|
|
|
Which should create a `` timer:
|
|
|
|
```
|
|
|
|
```
|
|
|
|
Which will run `docker-compose up --build --force-recreate -d`.
|
|
|
|
|
2019-02-13 22:45:53 +00:00
|
|
|
# Requirements
|
|
|
|
|
|
|
|
Due to being part of Status infra this role assumes availability of certain things:
|
|
|
|
|
|
|
|
* Docker for running containers
|
|
|
|
* The `iptables-persistent` module
|