/cardanoNodeBuilder

dockerfile + compose to compile the latest cardano-node in a consinstent way with predictable results

Primary LanguageDockerfile

README

At the minute, the only way to install the cardano-node and the cardano-cli, necessary to run a stake pool on Shelley, is to compile them. Compilation can be troublesome for some and lead to issues. To reduce complexity and have predictable results, I use a Docker build environment. This setup will always to build against the latest cardano-node version and pioneer-* tag as in the official documentation.

IMPORTANT: you must run these steps to compile cardano-node and cardano-cli on your local computer, and copy them over to your servers. This is to avoid useless load and installing compilation software on your servers.

install docker

Install and run Docker Desktop for your OS from the official site, on your local computer.

clone the build repo

git clone https://github.com/gacallea/cardanoNodeBuilder.git

compile the software

cd cardanoNodeBuilder
docker-compose up --build -d

copy the binaries to your host

docker container cp build_builder_1:/usr/local/bin cardano-bins/

scp the binaries to your nodes

NOTE: Make sure you point to your actual servers.

scp cardano-bins/bin/cardano-node node-server:/usr/local/bin/
scp cardano-bins/bin/cardano-cli node-server:/usr/local/bin/
scp cardano-bins/bin/cardano-node relay-server:/usr/local/bin/
scp cardano-bins/bin/cardano-cli relay-server:/usr/local/bin/