Bitcoin Forum
November 22, 2017, 08:50:11 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Spawn & distribute private blockchain networks with Docker, comments appreciated  (Read 1644 times)
derrend
Hero Member
*****
Offline Offline

Activity: 706



View Profile WWW
April 07, 2016, 12:52:59 AM
 #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
Join ICO Now A blockchain platform for effective freelancing
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1511383811
Hero Member
*
Offline Offline

Posts: 1511383811

View Profile Personal Message (Offline)

Ignore
1511383811
Reply with quote  #2

1511383811
Report to moderator
1511383811
Hero Member
*
Offline Offline

Posts: 1511383811

View Profile Personal Message (Offline)

Ignore
1511383811
Reply with quote  #2

1511383811
Report to moderator
1511383811
Hero Member
*
Offline Offline

Posts: 1511383811

View Profile Personal Message (Offline)

Ignore
1511383811
Reply with quote  #2

1511383811
Report to moderator
derrend
Hero Member
*****
Offline Offline

Activity: 706



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: 163


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

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

mybitprices.info - wallet auditing tools
derrend
Hero Member
*****
Offline Offline

Activity: 706



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: 1


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

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

Activity: 72


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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!