Git Product home page Git Product logo

eth-node's Introduction

Description

This Ansible playbook deploys a Nomad + Consul cluster into an Ubuntu Server 20.04 machine and runs an Ethereum node in the Ropsten test net as a containerized nomad job (Docker). The ledger data is permanently persisted to a mounted drive.

Usage

1. Configure the environment:

Preserve the contents of the files and only change the mentioned values.

1.1. Enter the ansible directory:

cd ansible

1.2. Set server info and credentials in the development inventory:

# Example

[nomad_servers]
10.0.0.1:22

[nomad_clients]
10.0.0.1:22

[all:vars]
ansible_user=myuser
ansible_ssh_user=myuser
ansible_ssh_private_key_file=~/.ssh/id_rsa

1.3. Configure the data volume in eth-node-vars.yml:

# Example

DATA_VOLUME_DEVICE_NAME: sdc
DATA_VOLUME_FILESYSTEM: ext4
DATA_VOLUME_MOUNT_POINT: /data
DATA_VOLUME_DATA_OWNER: myuser

1.4. Configure Docker Hub credentials in eth-node-vars.yml:

This step can be removed with proper docker auth configuration (TODO).

# Example

DOCKER_HUB_USERNAME: "myuser"
DOCKER_HUB_PASSWORD: "mypass"

2. Install dependencies:

ansible-galaxy install -r requirements.yml

3. Run the playbook:

ansible-playbook eth-node.yaml

Nomad UI

You can access the Nomad UI via:

http://<server_ip>:4646/ui/jobs

TODO

  • Setup Docker static token authentication on the node to avoid having to specify credentials.
  • Setup monitoring (in this config it doesn't make much sense to setup monitoring services on the same machine).
  • Implement better health checks for the Ethereum node.

eth-node's People

Contributors

karliwson avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.