Bulid WaykiChain Nodes
1. build node
For now, support Linux-like 64bit systems, such as Ubuntu 14.x/Ubuntu 16.x/Ubuntu 18.x/Cent OS 7.x only.
1.1. Prepare an auto download compilation script
The script build_local.sh
content is as follows.
#!/bin/bash
sudo mkdir -p /opt/wicc
cd /opt/wicc
#build waykicoind
sudo curl https://raw.githubusercontent.com/WaykiChain/WaykiChain/master/linuxshell/prepare_prerequisites.sh|bash
sudo rm -rf WaykiChain
git clone -b release https://github.com/WaykiChain/WaykiChain.git
cd ./WaykiChain/linuxshell
sh linux.sh
cd ..
sh autogen-coin-man.sh coin
make
#copy the coind and WaykiChain.conf
cd ..
cp ./WaykiChain/src/coind coind
cp ./WaykiChain/Docker/WaykiChain.conf WaykiChain.conf
1.2. Download and compile
Run the following command to execute the script to download the source code.
sh build_local.sh
1.3. Check
- please check if have coind (executable file) and WaykiChain.conf (config file) is in the directory
/opt/wicc/
- Refer to WaykiChain.conf to undetstand Parameter Description
example
root@ubuntu:/opt/wicc# ls
coind WaykiChain WaykiChain.conf
root@ubuntu:/opt/wicc\#
Please start to deploy to privatenet , testnet, or mainnet for your development.
2. Build image for Docker
2.1. Pull image from Dockerhub
docker pull wicc/waykicoind
2.2. Check
docker images
example
``
\~/workspace/wicc$docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
wicc/waykicoind latest b18a36f2f574 2 days ago 623MB
\
``
As above, the image be pulled successfully. Please refer to Waykichain.conf to deploy it.
Please refer to Build image by Dockerfile if you want to build docker image by Dockerfile