Bitcoin Forum
November 13, 2024, 06:08:57 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Spawn & distribute private blockchain networks with Docker, comments appreciated  (Read 1839 times)
derrend (OP)
Hero Member
*****
Offline Offline

Activity: 707
Merit: 505



View Profile WWW
April 07, 2016, 12:52:59 AM
Last edit: April 16, 2016, 03:34:02 AM by derrend
Merited by ABCbits (5)
 #1

cloner
Spawn and distribute blockchain networks on the fly. Based on bitcoin 0.10.

Dependencies
git, docker

Instructions
Clone the `cloner` repo and run the setup script.
Code:
git clone https://github.com/coinclone/cloner.git && \
cd cloner && \
bash setup.sh <blockchain>

Once the genesis block is mined (the setup script takes care of this) you will find a new image inside your local repository named `coinclone/<blockchian>:node`.
Move into `cloner/deploy/`, edit the `coin.conf` file to your specifications and build any class of container you want (miner, relay).
Code:
cd deploy/

#vi coin.conf
bash setup.sh <blockchain> <node_class> <number_of_instances>

You do not need to configure the `rpcpassword` option in `coin.conf`. It will be automatically appended at runtime.

Run at least two instances to establish a network. You may deploy as many instances as you wish.
Code:
bash setup.sh bitcoin miner 1 && \
sed -i 's/gen=1/gen=0/g' config/coin.conf && \
bash setup.sh bitcoin relay 1



Important
IP addresses are deterministic in docker and so each new instance is set to connect to its own IP address - 1. If it fails to receive a response it will connect to its own IP address + 1.
You can add IP addresses manually in deploy/coin.conf

Donate
If you like the project and would like to donate some of your time and expertise by contributing to the code base, that would be fantastic and very much appreciated.
If you cannot produce code but would still like to contrubute, you can donate crypto to any of the addresses listed below which is also very much appreciated.

Bitcoin - 14qQtzyUayEj97JhizmCqwYfovqL6uLtW
Viacoin - VbWrkv8aE1zpNWDJsKVT2aGH3nBLrj7pwB
derrend (OP)
Hero Member
*****
Offline Offline

Activity: 707
Merit: 505



View Profile WWW
April 16, 2016, 12:36:40 AM
 #2

`bitcoinclone` has become `cloner` and now supports Bitcoin, Litecoin and Viacoin!
danda
Full Member
***
Offline Offline

Activity: 203
Merit: 168


View Profile WWW
April 16, 2016, 08:25:13 PM
 #3

and this code should be trusted because.....?

mybitprices.info - wallet auditing   |  hd-wallet-derive - derive keys locally |  hd-wallet-addrs - find used addrs
lightning-nodes - list of LN nodes  |  coinparams - params for 300+ alts  |  jsonrpc-cli - cli jsonrpc client
subaddress-derive-xmr - monero offline wallet tool
derrend (OP)
Hero Member
*****
Offline Offline

Activity: 707
Merit: 505



View Profile WWW
April 16, 2016, 08:50:17 PM
 #4

and this code should be trusted because.....?
It's opensource and it runs inside a docker container which is an isolated environment. No trust necessary Smiley
divinci
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
May 31, 2016, 08:24:23 PM
 #5

Very cool thanks :-)
joey.rich
Member
**
Offline Offline

Activity: 124
Merit: 16


View Profile WWW
June 18, 2016, 10:03:34 AM
 #6

This sounds very interesting!  I'm sure you have heard about Eris which also uses docker and is targeted towards helping companies develop their own custom blockchains.  How do you differentiate from Eris, and how do you expect people to use cloner?
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!