Skip to content
Snippets Groups Projects
Gizzmo's avatar
Gizzmo_OH authored
a16ac76d
Name Last commit Last update
Dockerfile
README.md

docker haroldnode

Dockerfile to build an image that runs a Haroldcoin masternode.
The Dockerfile builds haroldcoind from source and only keeps the binaries.
Most open todos are closed with this last release.

Docker image is available:
docker pull dock.atticstudios.be/haroldcoin/masternodes/docker-haroldnode/haroldnode:0.2.0

Run with a volume bound for the .haroldcoin directory, and map port 25676/tcp
docker run -d -v {volume|mount}:/hrld -p 25676:25676 --name haroldcoin-mn01 haroldnode:0.2.0
If the mounted volume does not contain a haroldcoin.conf file, one will be created.
The required fields to enable the masternode are templated, you can just fill them in and uncomment them.
This will start the blockchain download. In the mean time, you can prepare your new masternode transaction! When you update the haroldcoin.conf file in the volume, just restart the container.

The image size has been further optimized to around 830MB uncompressed (270MB compressed)
haroldcoind runs as a system user. You can connect to a running container:
docker exec -ti haroldcin-mn01 bash
to connect as root. The base directory is /hrld. haroldcoin-cli is installed and pre-configured.
get block count:
haroldcoin-cli getblockcount
get masternode sync status:
haroldcoin-cli mnsync status
get masternode status:
haroldcoin-cli getmasternodestatus

09/2023: mount volume size gets around 150mb

Todo:

  • include build in a 2-stage image build
  • run haroldcoin as a restricted user
  • find a lighter base image?
  • pre-create the haroldcoin.conf with a random rpcuser and password

-Gizzmo