Giter VIP home page Giter VIP logo

docker-bitcoin-core's Introduction

Bitcoin Core

Bitcoin Core is programmed to decide which block chain contains valid transactions. The users of Bitcoin Core only accept transactions for that block chain, making it the Bitcoin block chain that everyone else wants to use. For the latest developments related to Bitcoin Core, be sure to visit the project’s official website.

Minimal hardware requirements for full node setup

testnet

For initital synchronization:

  • 2 CPU cores
  • 4 GB RAM
  • 35 GB of disk space

When synchronized:

  • 2 CPU cores
  • 2 GB RAM

mainnet

For initital synchronization:

  • 4 CPU cores
  • 8 GB RAM
  • 280 GB of disk space

When synchronized:

  • 2 CPU cores
  • 2 GB RAM

Deployment

Deploy with docker-compose

Linux CLI example:

$ curl -fsSL https://get.docker.com -o get-docker.sh # Do not forget to review scripts source code before execution

$ sh get-docker.sh # Install docker
(output omitted)

$ docker --version # Verify docker is installed
Docker version 18.09.6, build 481bc77

$ export BASEFILENAME=docker-compose-$(uname -s)-$(uname -m)

$ export BASEURL=https://github.com/docker/compose/releases/download/1.24.0

$ curl -fsSLO "${BASEURl}/${BASEFILENAME}" && curl -fsSLO "${BASEURl}/${BASEFILENAME}.sha256"

$ sha256sum -c $BASEFILENAME.sha256
docker-compose-Linux-x86_64: OK

$ chmod +x $BASEFILENAME && sudo mv $BASEFILENAME /usr/local/bin/docker-compose && rm -f $BASEFILENAME.sha256 && unset BASEURL && unset BASEFILENAME # Install docker-compose

$ docker-compose --version # Verify docker-compose installed
docker-compose version 1.24.0, build 0aa59064

$ mkdir -p my-bitcoin-service-dir && cd $_ # Customize directory name

$ curl -fsSLO https://raw.githubusercontent.com/4ops/docker-bitcoin-core/master/examples/docker/docker-compose.yml # Download service config

$ vi docker-compose.yml # Customize configuration

$ docker-compose config --quiet && docker-compose pull --quiet && echo OK # Verify configuration and download required images
OK

$ docker-compose up -d # Start service(s)
Creating network "my-bitcoin-service-dir_default" with the default driver
Creating my-bitcoin-service-dir_testnet_1 ... done
Creating my-bitcoin-service-dir_mainnet_1 ... done

Deploy to existing kubernetes cluster (testnet only example)

Linux CLI example with kubectl:

$ mkdir -p my-bitcoin-manifests && cd $_ # Customize directory name

$ export BASEURL=https://raw.githubusercontent.com/4ops/docker-bitcoin-core/master/examples/kubernetes

$ curl -fsSLO "${BASEURL}/secret.yaml" && curl -fsSLO "${BASEURL}/service.yaml" && curl -fsSLO "${BASEURL}/statefulset.yaml" && unset BASEURL # Download statefulset example

$ vi secret.yaml # Customize passwords

$ vi service.yaml # Customize service configuration

$ vi statefulset.yaml # Customize application and disk storage configuration

$ kubectl -n my-bitcoin-namespace apply -f `pwd` --dry-run # Check syntax
secret/bitcoin-core-testnet created (dry run)
service/bitcoin-core-testnet created (dry run)
statefulset.apps/bitcoin-core-testnet created (dry run)

$ kubectl -n my-bitcoin-namespace apply -f `pwd` # Deploy application (do not forget to change namespace name)

docker-bitcoin-core's People

Contributors

4ops 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.