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:
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
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:
Last updated