2. First build the base containers using the script.(This may take few minutes)
Screenshot after successful build:
Base 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 fromhere .
For building the sharder containers use the following command :
Screenshot of successful sharder build:
Sharder Build
Build the miner containers using
Screenshot of a successful miner build:
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:
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).