The purpose of this project is to provide mechanisms for developing, testing and deploying Ethereum miners.
Donations: if you find this project helpful I suggest donating to the owner of cpp-ethereum via ETH address 0xeb9310b185455f863f526dab3d245809f6854b4d
. Donations to myself also appreciated at ETH address: 0x732deB77C2aC91DDedb41B4174aDbAfc5b0D2689
.
NOTES: this project uses git submodules so you will want to clone recursively to have all expected behaviours.
git clone --recursive [email protected]:svo/ethereum-miner.git
Requirements:
- Vagrant (tested with version: 1.9.3)
- VirtualBox (tested with version: 5.1.18 r114002)
- Ansible (tested with version: 2.1.1.0)
Setup environment by using the following: vagrant up
vagrant ssh
cd /vagrant
vagrant ssh
cd /vagrant
./pre-commit.sh
Jenkins builds on commits and is available at: http://vagrant-ethereum-miner-ci.local:8080/
vagrant ssh
aws configure
cd /vagrant/terraform
terraform apply
vagrant ssh
cd /vagrant
./provision.sh <path-to-private-key> <ip-for-instance>
Create an ansible_hosts
file with the IP/DNS for the Virtual Machine/s then:
ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook --private-key <path-to-private-key> -u <username> -i ansible_hosts ansible/playbook.yml
geth --etherbase 0xa3d0dF26399A18BE31dD959D566ecdb50F9070ed --rpc --rpccorsdomain localhost
~/cpp-ethereum/build/ethminer/ethminer -U -G -F http://eth-us2.dwarfpool.com:80/0xa3d0dF26399A18BE31dD959D566ecdb50F9070ed
ethminer -F http://eth-us2.dwarfpool.com:80/0xa3d0dF26399A18BE31dD959D566ecdb50F9070ed