Dockerized Karbo CLI environment for more convenient deployment. Can be used for:
- deploying your own masternode
- deploying simplewallet or walletd for your karbo-based services
There are few ways you can run masternode:
- (Not from this repo) Install it on host. Less overhead solution, hard to maintain (manual here)
- Run it from docker container. More overhead, less pain in maintenance
- Run it from docker container with Docker-compose. Most overhead solution, easiest maintenance (e.g. upgrades with two simple commands)
- Prepare environment (link1, link2)
- Clone that repository
- Edit .env file for setting your optimal preferences
Please pay attention to NODE_OWNER parameter. It is very useful if you can specify your email or messenger nickname so we can stay in touch with you, it's very useful in emergency cases such as hardforks and so on.
- (Optional) You can use a bootstrap for sync speedup. Use next command from repo home folder (where docker-compose.yml located):
wget https://bootstrap.karbo.io/latest.tar.gz -O ./data/node/latest.tar.gz && tar -xzvf ./data/node/latest.tar.gz -C ./data/node/ && rm ./data/node/latest.tar.gz
- Run your node with next command:
docker-compose up -d karbo-node
docker-compose up -d karbo-node
- starts up node servicedocker-compose logs karbo-node
- shows log tty of the nodedocker-compose stop karbo-node
- stops the node
docker-compose pull
docker-compose up -d karbo-node
sudo crontab -e
- Add new command to your crontab:
cd *<path to your docker-compose.yml>* && docker-compose pull && docker-compose up -d karbo-node
with periodic you like (e.g.@daily
) - Save it
sudo /etc/init.d/cron reload
- Prepare environment (link)
- Create a folder on your host for storing blockchain (e.g. /home/.karbo)
- Deploy your node with next command:
docker run -it --restart=always -p 32347:32347 -p 32348:32348 -v /home/.karbo:/home/karbo/.karbowanec --name=karbo-node -d karbovanets/karbo-cli --fee-address=*<your_wallet_address>*
- Enjoy
docker pull karbovanets/karbo-cli
docker stop karbo-node
docker rm karbo-node
docker run -it --restart=always -p 32347:32347 -p 32348:32348 -v /home/.karbo:/home/karbo/.karbowanec --name=karbo-node -d karbovanets/karbo-cli --fee-address=*<your_wallet_address>*