Author

Topic: Spawn & distribute private blockchain networks with Docker, comments appreciated (Read 1841 times)

member
Activity: 124
Merit: 16
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?
newbie
Activity: 2
Merit: 0
hero member
Activity: 707
Merit: 505
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
full member
Activity: 203
Merit: 168
and this code should be trusted because.....?
hero member
Activity: 707
Merit: 505
`bitcoinclone` has become `cloner` and now supports Bitcoin, Litecoin and Viacoin!
hero member
Activity: 707
Merit: 505
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

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

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
Jump to: