Giter VIP home page Giter VIP logo

private-networks-deployment-scripts's Introduction

private-networks-deployment-scripts

This repository contains out-of-the-box deployment scripts for ethereum private PoA networks. There are 2 sandboxes - vagrant virtual machine and docker container setups, both can be used to create dev environment, initiate and run a private network. Puppeth network manager is used to create new network and generate genesis file.

The goal is to create 'out-of-box', 'one-click' solution for setting up new private ethereum network.

In progress:

  • Test, test, test ...
  • Find out why docker is so slow
  • Add netstat
  • Use only 1 folder with init-network.sh, try to avoid duplication.

Running vagrant VM

In the top level directory:

$ cd vagrant-vm
$ vagrant up
$ vagrant ssh
$ sudo -i
$ cd /home/ubuntu/Nnodes/
$ ./init-network.sh

Script will ask you to define a name of future network, amount of nodes, password for each node...

Running docker container

In the top level directory:

$ cd /home/Nnodes/docker-ctn
$ docker build -t $CONTAINER_NAME .
$ docker run -p 3000:3000 --name $CONTAINER_INSTANCE_NAME -i -t $CONTAINER_NAME
$ cd /home/Nnodes
$ ./init-network.sh

To connect to node console via IPC, please type

$ geth attach ipc:nodes/NODE_NUM/geth.ipc

Ethereum netstat

Additionally you can run an ether netstat to see your PoA network information.

In the 'Nnodes' directory:

$ cd netstat
$ ./init-netstat.sh

If network successfully started, you will see something like this on http://localhost:3000 Created network information

Please make sure port 3000 is free.

private-networks-deployment-scripts's People

Contributors

toninorair 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.