All Projects → RyanHendricks → Docker-Ethereum-Testnet

RyanHendricks / Docker-Ethereum-Testnet

Licence: other
🌐 Easily deploy a scaleable Ethereum Testnet using Docker

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to Docker-Ethereum-Testnet

frontend
testnet.exchange frontend
Stars: ✭ 18 (-60%)
Mutual labels:  testnet
local-testnet
A local testnet of go-spacemesh full nodes running the Spacemesh protocol and a functional CLI wallet. 💾⏰
Stars: ✭ 13 (-71.11%)
Mutual labels:  testnet
testnet.backend
Backend for a ViaBTC exchange server (trading engine)
Stars: ✭ 18 (-60%)
Mutual labels:  testnet
blockchain c2c
A Proof of Concept to show how blockchain can solve C2C persistence. PoC originally presented at EuskalHack Security Congress 2017, updated and improved for Cybercamp 2017.
Stars: ✭ 21 (-53.33%)
Mutual labels:  testnet
ssb-minimal
A minimal way to get started talking to ssb on a testnet in node
Stars: ✭ 14 (-68.89%)
Mutual labels:  testnet
padawan-wallet
The bitcoin wallet trainer on Android.
Stars: ✭ 31 (-31.11%)
Mutual labels:  testnet
scripts
StakePool Operator Scripts. Learn how to create and manage your StakePool with these simple scripts. Hardware-Ledger Support, Token/Asset Sending, Offline-Mode and more...
Stars: ✭ 200 (+344.44%)
Mutual labels:  testnet
freewallet-mobile
Mobile wallet for iOS/Android/Browser which supports Bitcoin and Counterparty
Stars: ✭ 51 (+13.33%)
Mutual labels:  testnet
morpheus
Red pill or blue pill? - A collection of Desmos testnets
Stars: ✭ 22 (-51.11%)
Mutual labels:  testnet
testnets
Stargaze testnets
Stars: ✭ 43 (-4.44%)
Mutual labels:  testnet
smrepl
A Spacemesh Terminal wallet app
Stars: ✭ 16 (-64.44%)
Mutual labels:  testnet

Docker Ethereum Testnet

  • Deploy a private Ethereum testnet cluster with netstats using Docker

Additional Features

  • Scaleable number of running nodes in the network
  • Manage running containers using the Portainer GUI.
  • Interact with your private blockchain using Etherwallet (account interface) and Ethersapp (contract interface)

Deploy the Ethereum Testnet

docker-compose up -d

This will build the images and start the containers for:

  • 1 Ethereum Bootstrapped container (acts as a primary node for the other nodes to connect)
  • 1 Ethereum "Miner" container (which connects to the bootstrapped container on launch)
  • 1 Netstats container (with a Web UI to view activity in the cluster) To access the Netstats Web UI: http://localhost:3000
  • 1 Addons container which gives you access to Ethersapp and MyEtherWallet. These are accessible via localhost:80/ethersapp and localhost:80/etherwallet

When starting for the first time it will take a few minutes for the miner to generate the DAG before you start seeing mined blocks

Note: you can remove the addons container by removing the last entry in the docker-compose.yml file.

Scaling

If you want additional miners in the test network you can simply run the following command replacing 'X' with the number of desired miners.

docker-compose up -d --scale ethminer=X

Test accounts

There are 20 pre-funded accounts included. Keystore Files and Private Keys can be found in ./files/keystore You can connect to the network RPC (metamask, remix, mew, etc.) using http://localhost:8545


Managing Cluster

You can manage the containers via the command line or using portainer.

Use the following Docker commands to deploy Portainer:

$ docker volume create portainer_data

$ docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer

Access the Portainer Dashboard via http://localhost:9000

Note: the -v /var/run/docker.sock:/var/run/docker.sock option can be used in Linux environments only.

Interact with geth via commandline

docker exec -it *nameofcontainer* geth attach ipc://root/.ethereum/devchain/geth.ipc

Cleanup Docker (containers and images)

# run the script
./dockerlint.sh

## or manually
docker ps -aq | xargs docker rm -f
docker images -aq | xargs docker rmi -f
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].