Skip to content

Latest commit

 

History

History
37 lines (31 loc) · 997 Bytes

BUILD_README.md

File metadata and controls

37 lines (31 loc) · 997 Bytes

BitCore RPC Server - Build Docker Image

The Dockerfile will install all required stuff to run a BitCore RPC Server and is based on script btxsetup.sh (see: https://github.com/dArkjON/Bitcore-BTX-RPC-Installer/blob/master/btxsetup.sh)

Requirements

  • Linux Ubuntu 16.04 LTS
  • Running as docker host server (package docker-ce installed)
sudo curl -sSL https://get.docker.com | sh

Needed files

  • Dockerfile
  • bitcore.conf
  • bitcored.sv.conf
  • start.sh

Allocating 2GB Swapfile

Create a swapfile to speed up the building process. Recommended if not enough RAM available on your docker host server.

dd if=/dev/zero of=/swapfile bs=1M count=2048
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile

Build docker image

docker build [--build-arg BTXPWD='<bitcore user pwd>'] -t btx-rpc-server .

Push docker image to hub.docker

docker tag btx-rpc-server limxtec/btx-rpc-server
docker login -u limxtec -p"<PWD>"
docker push limxtec/btx-rpc-server:<tag>