Setup on docker (Deprecated)
This is the deprecated method of setting up a node. Please read the latest guide first.
The documentation is designed for Liker Land and LikeCoin v2. For information on 3ook.com and LikeCoin v3, please visit docs.3ook.com and dao.like.co.
Setup steps
Clone the project
Build the Docker image
Initialize the node and account keys
Start up the node and wait for synchronization catch up
Clone the project
Run git clone https://github.com/likecoin/likecoin-chain --branch release/v3.x --single-branch, then cd likecoin-chain.
Build the Docker image
Run make build-docker.
Initialize the node and account keys
Run
cp docker-compose.yml.template docker-compose.ymlcp .env.template .env``for setting up thedocker-compose.ymland.env.\Modify
.envfile for the network config. For mainnet:LIKECOIN_MONIKER="<change this for your node's name>"LIKECOIN_DOCKER_IMAGE="likecoin/likecoin-chain:v4.2.0"LIKECOIN_CHAIN_ID="likecoin-mainnet-2"LIKECOIN_GENESIS_URL="https://gist.githubusercontent.com/williamchong/de1bdf2b2a8f3bce50a4b5e46af26959/raw/4e21bff586771c849d22e1916bcb88c6463fbaa0/genesis.json"LIKECOIN_SEED_NODES="[email protected]:26656,[email protected]:26656"\For testnet:LIKECOIN_MONIKER="<change this for your node's name>"LIKECOIN_DOCKER_IMAGE="likecoin/likecoin-chain:v4.2.0"LIKECOIN_CHAIN_ID="likecoin-public-testnet-5"LIKECOIN_GENESIS_URL="https://gist.githubusercontent.com/nnkken/4a161c14e9dc03f412c36d11cdf7ea27/raw/9265c348c9f79b918d99aeee7f6c29b6b3bc449f/genesis.json"LIKECOIN_SEED_NODES="[email protected]:26656"\Note thatLIKECOIN_MONIKERis a custom name you decide for your node's name.\Run
docker-compose run --rm initto create.likeddirectories, with node config and keys initialized.\Run
docker-compose run --rm liked-command keys add validatorto add an operator key. The command will output your operator address, and also a 12-24 words mnemonic phrase. Please backup the mnemonic phrase properly as it represents your validator's private key. When asked, enter and repeat a passphrase for protecting your account key.
Start up the node
Run docker-compose up -d. This will create and run the Docker containers in background.
To see if the node is running well, you can input docker-compose logs to see if there is any error.
Last updated