Skip to content

Latest commit

 

History

History
83 lines (33 loc) · 2.03 KB

README.md

File metadata and controls

83 lines (33 loc) · 2.03 KB

Blobber Setup on ec2 / vm / bare metal

Prerequisite

  • ec2 / vm / bare metal with docker installed

Initial Setup

Directory Setup for Blobbers

In the git/blobber run the following command


$ ./docker.local/bin/blobber.init.setup.sh

Building and Starting the Nodes

  1. Setup a network called testnet0 for each of these node containers to talk to each other.

$ docker network create --driver=bridge --subnet=198.18.0.0/15 --gateway=198.18.0.255 testnet0

  1. Update block_worker url you give in the config/0chain_blobber/validator.yaml and config/0chain_blobber/0chain_blobber.yaml config file.

For example: If you want to connect to beta network, set


block_worker: https://beta.0chain.net/dns

  1. Modify docker.local/keys_config/b0bnode1_keys.txt and replace localhost with public ip of your instance / vm.

  2. Modify docker.local/b0docker-compose.yml and replace < public ip here > with public ip of your instance / vm.

command: ./bin/blobber --port 505${BLOBBER} --hostname < public ip here > --deployment_mode 0 --keys_file keysconfig/b0bnode${BLOBBER}_keys.txt --files_dir /blobber/files --log_dir /blobber/log --db_dir /blobber/data

  1. To listen on tls network add --https-port, --https-cert-file (certificate file) and --https-key-file (key file)

command: ./bin/blobber --port 505${BLOBBER} --https-port 506${BLOBBER} --https-cert-file < certificate file > --https-key-file < key file > --hostname < public ip here > --deployment_mode 0 --keys_file keysconfig/b0bnode${BLOBBER}_keys.txt --files_dir /blobber/files --log_dir /blobber/log --db_dir /blobber/data

  1. Go to git/blobber directory to build containers using

$ ./docker.local/bin/build.blobber.sh

  1. After building the container for blobber, go to Blobber1 directory (git/blobber/docker.local/blobber1) and run the container using

$ ../bin/blobber.start_bls.sh


This will join blobber1 to the network. You can repeat step 3 and 5 for other blobbers to join them to the network.