Giter Club home page Giter Club logo

docker-abc-rpi's Introduction

docker-abc-rpi

A Docker container designed to run on a Raspbery Pi, in order to turn it into an Bitcoin Cash full node running the ABC version of the client. The blockchain is expected to be stored on a 256GB USB flash drive attachd to the RPi.

Note: Syncing from genesis will take months on a Raspberry Pi, and may never finish. But if the synced blockchain is downloaded to its flash drive, a RPi can easily maintain the full node. See bchjs.cash.

Installation and Usage

It's assumed that you are starting with a fresh installation of Raspbian on a Raspberry Pi B+ v3.

  • Clone this repository in your home directory with the following command: git clone https://github.com/christroutner/docker-abc-rpi

  • Initialze the RPi by running the ./init-rpi.sh bash script. This will remove a lot of unneeded software, update the OS, install Node.js and Docker.

  • Add 2GB of swap space by following this gist

  • Format and permently mount the 256 GB USB flash drive by following this gist

  • Build the docker container by running the build script: ./build-image.sh

  • Run the container with the run script: ./run-image.sh

  • Check on the status of bitcoind as it syncs to the blockchain: sudo tail /media/usb/debug.log

  • Check the version of ABC running by using curl against the JSON RPC:

curl --data-binary '{"jsonrpc":"1.0","id":"curltext","method":"getinfo","params":[]}' -H 'content-type:text/plain;' http://bitcoin:[email protected]:8332/

curl --data-binary '{"jsonrpc":"1.0","id":"curltext","method":"getblockchaininfo","params":[]}' -H 'content-type:text/plain;' http://bitcoin:[email protected]:8332/

docker-abc-rpi's People

Contributors

christroutner avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.