Skip to content

Latest commit

 

History

History
57 lines (34 loc) · 1.42 KB

docker-install.md

File metadata and controls

57 lines (34 loc) · 1.42 KB

Installing cheqd-node with Docker

Description

Debian based docker image that contains the latest version of cheqd-nonded executable.

Prebuilt package

You can find prebuilt package here:

https://github.com/cheqd/cheqd-node/pkgs/container/cheqd-node

To pull it use:

docker pull ghcr.io/cheqd/cheqd-node:latest

Building

To build the image:

  • Go to the repository root;
  • Run docker build -f docker/cheqd_node/Dockerfile -t cheqd-node ..

Note: If you are using M1 Macbook you should modify the FROM statement in the Dockerfile, should be like this "FROM --platform=linux/amd64 golang:buster as builder "

Usage

cheqd-noded

cheqd-noded executable is entry point by default.

Usage:

docker run -it --rm cheqd-node <command> <args>

node-runner

Used to initialize configuration files and run a node in one command.

Parameters:

  • NODE_MONIKER - node moniker;
  • GENESIS - base64 encoded content of genesis.json;
  • NODE_KEY - base64 encoded content of node_key.json;
  • PRIV_VALIDATOR_KEY - base64 encoded content of priv_validator_key.json;
  • NODE_ARGS (optional) - argument string passed to the cheqd-noded start command.

Usage:

docker run -it --rm --entrypoint node-runner -e NODE_MONIKER=<moniker> -e GENESIS="<content>" -e NODE_KEY="<content>" -e PRIV_VALIDATOR_KEY="<content>" cheqd-node