This onboarding will help users to operate as Sirius Storage Drive Owner Node and/or Sirius Storage Replicator Node.
Storage Director Node (SDN) acts as a front facing staging storage server for temporary hosting of files and doubles up as a transiting point for files to be stored in Replicators.
A Storage Replicator Node (SRN) node has 2 roles:
1) replicator: store SDN data. 2) verifier: check the integrity of data stored and safe
To better understand how the Sirius Storage works, it will be worthwhile reading the online sirius storage documentation
Ensure that your local network allows inbound/outbound traffic on these ports:
A note on System Requirements: Theoretically, this dockerized Sirius Storage package can run on any OS running Docker version 19.03.3.
But if you really need a minimum benchmark, we have seen the Sirius Storage Replicator to work with a minimum Hardware of 1 CPU core and 2GB RAM.
This README was prepared by testing the package on:
This onboarding method requires docker
.
Run the following command to install docker
:
$ curl -fsSL https://get.docker.com -o get-docker.sh
$ sh get-docker.sh
Git needs to be installed.
$ sudo apt install git
git clone https://github.com/proximax-storage/sirius-storage-testnet-onboarding.git
Change directory:
cd sirius-testnet-onboarding/drive
Getting started instructions can be found here.
./generate_address
cd sirius-testnet-onboarding/replicator
Edit start-replicator.sh
and replace <PRIVATE_KEY>
with replicator drive account's private key.
#!/bin/bash
$replicator_key = "<PRIVATE_KEY>"
docker stop replicator
docker rm replicator
docker run -d --name replicator --network host -v $PWD:/root/.dfmsr:rw proximax/sirius-storage-replicator:v0.6.3 dfms -k $replicator_key
docker exec replicator dfms contract accepting
./start-replicator.sh
./stop-replicator.sh
The docker image contains the dfmsr
and dfms
command.
You will be able to access the dfmsr
command via docker using the following:
docker exec replicator dfms
and you will be able to access the dfms
command via docker using the following:
docker exec drive dfms
Instead of typing a long command on the command line, you can create a shortcut by creating bash aliases:
alias dfmsr="docker exec replicator dfms"
alias dfms="docker exec drive dfms"
To make the alias persistent you need to declare it in the ~/.bash_profile or ~/.bashrc file. Open the ~/.bashrc in your text editor:
nano ~/.bashrc
and add your aliases:
# ~/.bashrc
# Aliases
# alias alias_name="command_to_run"
# Long format list
alias dfmsr="docker exec replicator dfms"
alias dfms="docker exec drive dfms"
You should name your aliases in a way that is easy to remember. It is also recommended to add a comment for future reference.
Read more about the usage of the dfmsr
and dfms
CLI here
Please take note that the alias command can only be run when the drive
and/or replicator
are running
We have a telegram helpdesk to assist general queries.