Git Product home page Git Product logo

htmlcoin_docker's Introduction

Build HTMLCoin Docker Images for Ubuntu 18.04 Bionic and 20.04 Focal

The method below is related for x86/x64 platform. For Arm, please access this section: https://github.com/ilorivero/htmlcoin_docker_arm

HTMLCoin Docker dockerfile and scripts

This repository contains the Dockerfile and scripts to build a HTMLCoin node version 2.5 Docker image on Ubuntu 18.04 and 20.04.

Clone this repository with

git clone https://github.com/ilorivero/htmlcoin_docker.git

To build the Ubuntu 18.04 Bionic version image:

cd ./htmlcoin_docker/Ubuntu_18.04/
docker build -t htmlcoin .

To build the Ubuntu 20.04 Focal Fossa version image:

As there is no bitcoin repository for Ubuntu 20.04, I did some workarounds to make it work. Added the bionic repository, repository keys and configured time zone for unattended install.

cd ./htmlcoin_docker/Ubuntu_20.04/
chmod 777 tzscript.sh
docker build -t htmlcoin .

Create a Docker Volume to store the blockchain data and htmlcoin.conf

This will preserve the blockchain data.

docker volume create --name=data

To build and run the container image:

docker run -d --rm --name htmlcoin -v data:/root/.htmlcoin/ htmlcoin 

To check if the htmlcoin container is running:

 docker exec -i -t htmlcoin /bin/bash

You should be prompted with the Ubuntu command line.

root@0670472b9f64:/HTMLCOIN#

Check the Ubuntu version:

lsb_release -a

You shoud get something like this:

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04 LTS
Release:        20.04
Codename:       focal

To check if HTMLCoin daemon is running, call the htmlcoin-cli app with --getinfo parameter:

htmlcoin-cli --getinfo

The result should be something like this:

{
  "version": 2050000,
  "protocolversion": 70017,
  "blocks": 0,
  "timeoffset": 0,
  "connections": 1,
  "proxy": "",
  "difficulty": {
    "proof-of-work": 2807.914485770511,
    "proof-of-stake": 1879528578.109458
  },
  "chain": "main",
  "moneysupply": 0,
  "walletversion": 169900,
  "balance": 0.00000000,
  "stake": 0.00000000,
  "keypoololdest": 1594231883,
  "keypoolsize": 1000,
  "paytxfee": 0.00000000,
  "relayfee": 0.00400000,
  "warnings": ""
}

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.