docker haroldnode
Dockerfile to build an image that runs a Haroldcoin masternode. The Dockerfile builds haroldcoind from source and only keeps the binaries. This version still runs the masternode as root.
Docker image is available:
docker pull dock.atticstudios.be/haroldcoin/masternodes/docker-haroldnode/haroldnode:0.1.2
Run with a volume bound for the .haroldcoin directory, and map port 25676/tcp
docker run -d -v {volume|mount}:/root/.haroldcoin -p 25676:25676 --name haroldcoin-mn01 haroldnode:0.1.2
The first run will stop the container automatically. A haroldcoin.conf file will have been created in your bound volume. Enter a random 'rpcuser=' and 'rpcpassword=' line. Restart the container
docker start haroldcoin-mn01
This should 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.
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