Step 3: Initialize and Build the Züs components
Initialize the Sharder and Miner directories
Navigate to 0chain directory
2. Run the init.setup.sh
script located in the docker.local/bin
directory using the command
After running the script you will see the sharder and miner directories populated in docker.local
folder.
3. Lets verify whether the directories exist by navigating to docker.local
folder and running
The output should be similar to this:
Build the miner and sharder containers
1. Navigate to 0chain directory
2. First build the base containers using the script.(This may take few minutes)
Screenshot after successful build:
Build mocks from the Makefile in the repo, from 0chain directory run:
Note: Mocks have to be built once in the beginning. Building mocks require mockery and brew which can be installed from here .
For building the sharder containers use the following command :
Screenshot of successful sharder build:
Build the miner containers using
Screenshot of a successful miner build:
Initialize the blobber directories
Navigate to blobber directory
2. Inside blobber directory, run the commands below .The first command makes the shell script executable and while the next ones execute the shell script to create blobber directories.
NOTE: For Mac :
After running the script you will see the blobber directories populated in docker.local
folder
3. Let's verify whether the directories exist by navigating to docker.local
folder and running
The output should be like this:
Navigate to the config directory using
Use the nano editor to edit the block
_worker
field for both files :
and
Note : Change the default value of block_worker
field with the following: http://198.18.0.98:9091/ for the local chain.
Build the blobber containers
Go back to
blobber
directory
2. Now run the following scripts located in the docker.local/bin
directory.
Screenshot after a successful blobber build:
Note: The blobber scripts defined above works fine for Linux and Intel Mac .If you want to run blobber and validator on Apple Silicon Mac(M1 or M2) follow the guide here. In case you are still facing issues with blobbers on M1 or M2 mac check Troubleshooting Guide for Blobbers Setup (Mac M1 or M2).
Last updated