0Chain
Search…
Step 1: Set up the project

System Requirements

Required Free Space: 30 GB OS: Linux (Ubuntu Preferred) Mac(M1 or Intel) Setting up the project on Mac has additional requirements which can be found here Ram: 8GB Minimum,16 GB Recommended CPU: 8 Core CPU Minimum, 16 Core CPU Recommended

Prerequisites

Docker

1.Update the package index and install packages.
1
sudo apt-get update
Copied!
2.Install the necessary Docker dependencies
1
sudo apt-get install \
2
apt-transport-https \
3
ca-certificates \
4
curl \
5
gnupg \
6
lsb-release
Copied!
3.Add Docker's official GPG key:
1
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
Copied!
4.Set up a stable repository using the following command.
1
echo \
2
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
3
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
Copied!
5.Install the latest version of Docker Engine and containerd
1
sudo apt-get update
2
sudo apt-get install docker-ce docker-ce-cli containerd.io
Copied!
6.Verify whether the Docker is successfully installed using.
1
docker --version
Copied!
Sample Response:
1
Docker version 20.10.7, build f0df350
Copied!

Docker Compose

1.Run this command to download the current stable release of Docker Compose:
1
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
Copied!
2.Apply executable permissions to the binary:
1
sudo chmod +x /usr/local/bin/docker-compose
Copied!
3.Verify whether the docker-compose is successfully installed using.
1
docker-compose --version
Copied!
Response:
1
docker-compose version 1.29.2, build 1110ad01
Copied!

Cloning the Repositories

Deploying the 0Chain network requires cloning of the GitHub repos below.
0chain
1
git clone https://github.com/0chain/0chain.git
Copied!
blobber
1
git clone https://github.com/0chain/blobber.git
Copied!
0dns
1
git clone https://github.com/0chain/0dns.git
Copied!
Confirm whether all the cloned directories exist.
1
0chain/
2
blobber/
3
0dns/
Copied!