- Install Docker Engine
- Install Docker Engine for Ubuntu
- Install Docker Engine for Mac
- Install Docker Engine for Windows
- For other platforms, check out https://docs.docker.com/install/
- Start docker after installation
- Download the zipped file named "develop-binaries.zip" from the latest release at https://github.com/kpachhai/develap/releases When you unzip this file, you will see 3 folders that contains binaries for 3 supported platforms: darwin(Mac), Linux and Windows. Select the one appropriately
- Mainchain node
- mainnet: [20334 - RESTAPI Port, 20336 - RPC Port]
- testnet: [21334 - RESTAPI Port, 21336 - RPC Port]
- DID node
- mainnet: [20604 - RESTAPI Port, 20606 - RPC Port]
- testnet: [21604 - RESTAPI Port, 21606 - RPC Port]
- Token node
- mainnet: [20614 - RESTAPI Port, 20616 - RPC Port]
- testnet: [21614 - RESTAPI Port, 21616 - RPC Port]
- Eth node(only on testnet)
- testnet: [21636 - RPC Port]
- Run a testnet environment with mainchain, did, token and eth nodes
./develap blockchain run -e testnet -n mainchain,did,token,eth
- Run a testnet environment with mainchain node
./develap blockchain run -e testnet -n mainchain
- Run a mainnet environment with did node
./develap blockchain run -e mainnet -n did
- Kill token node on mainnet environment
./develap blockchain kill -e mainnet -n token
- Kill all the nodes on testnet environment
./develap blockchain kill -e testnet
- Show all the nodes currently running in mainnet environment
./develap blockchain list -e mainnet
- If you're running go version lower than 1.13, you'll need to do the following:
export GO111MODULE=on
make
to build it for your local environmentmake build-all
to build for 3 platforms: linux, darwin and windows
- build_dockerimages.sh: This shell script automatically builds all the binaries for main chain, all the sidechains, services, etc and then packages them to be run inside docker images and if the flags "-p" and "-l" are set to "yes", the built docker images are automatically pushed to Cyber Republic Docker Hub. Note that you need permission to push to the CR dockerhub but you can still build the images locally if you so choose