Giter VIP home page Giter VIP logo

docker-abc's Introduction

docker-abc

A BCH full node based on the ABC reference implementation.

This repository specifically targets the hard drive and micro-server platform described at bchjs.cash.

Installation and Usage

  • It's assumed that you are starting with a fresh installation of Ubuntu 18.04 LTS on a 64-bit machine. It's also assumed that you are installing as a non-root user with sudo privileges.

  • Install Docker on the host system. This tutorial shows how to install Docker on a Ubuntu system. It's specifically targeted to Digital Ocean's cloud servers, but should work for any Ubuntnu system.

  • Install Docker Compose too. This tutorial shows how to do so on a Ubuntu system.

  • Clone this repository in your home directory with the following command:

git clone https://github.com/christroutner/docker-abc

  • Create a two directories in the same directory docker-abc. These will be used to store configuration data and blockchain data. Call them:

    • config
    • blockchain-data
  • Copy the run-script.sh and bitcoin.conf file into the config directory you just created. Customize the bitcoin.conf file for your own full node.

  • Enter the docker-abc directory and start the container with this command:

docker-compose up -d

  • Check on the status of bitcoind as it syncs to the blockchain:

`sudo tail ../blockchain-data

/debug.log`

  • Or query the JSON RPC:

curl --data-binary '{"jsonrpc":"1.0","id":"curltext","method":"getnetworkinfo","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/

Customization

  • Customize the volumes setting in the docker-compose.yml file in order to choose where you want the blockchain data and config files stored.

  • Edit the bitcoin.conf file in the config directory and restart the container if you need to change the configuration settings for the full node.

Testnet

This repository has a hd-testnet branch that customizes the files in this repository for testnet.

License

MIT License

docker-abc's People

Contributors

christroutner avatar stevenans66 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.