Configuring Dockerbase

Antlia Architecture

Setup Antlia Nodes

To set up Antlia nodes, clone the code from Antlia:

https://github.com/antlia-io/antlia-sdk

Run the following command to start nodes:

make install
make build
make build-docker-antliadnode
docker-compose up

Setup Lite Client

Run the following command to start lite client:

antliacli rest-server --chain-id=antlias-test-01 --laddr=tcp://0.0.0.0:1317 --node tcp://localhost:26657 --trust-node=false --home node1/antliacli

You can set path to any node

e.g --home node1/antliacli

Setup Explorer

Prerequisites Required for setting up the explorer:

  1. Install nodejs v11.15.0

  2. Install Meteor

  3. Install Yarn

Setup the MongoDB using the following commands:

sudo apt update
sudo apt install -y mongodb
sudo systemctl status mongodb

Create User on MongoDB Type following in side MongoDB:

db.createUser(
{
user: "username",
pwd: "password",
roles: [ { role: "readWrite", db: "antlia" } ]
}
);

Manual Method:

Clone the project from Antlia:

git clone https://github.com/antlia-io/explorer.git

Run following command to generate build:

sh build.sh
cd bundle/programs/server/
npm install
cd ~/explorer/bundle

Run the following command to start explorer:

PORT=3000 ROOT_URL=http://localhost/ MONGO_URL='mongodb://{username}:{password}@{IP}:27017/antlia' METEOR_SETTINGS="$(cat settings.json)" meteor node main.js

Setup Explorer using Docker:

To Get genesis file run the following command:

https://raw.githubusercontent.com/antlia-io/Antlia-Explorer/antlias/development/settings.json

To run the docker:

docker run -d -p 3000:3000 -e MONGO_URL=mongodb://{username}:{password}@{IP}:27017/antlia -e METEOR_SETTINGS="$(cat settings.json)" --name explorer rnssolutions/explorer:0.1.5
‚Äč

Setup Wallet

Lite Proxy

Clone the lite-proxy:

git clone https://github.com/antlia-io/lite-proxy.git
cd lite-proxy

Install the Certificated:

yarn install
yarn certificates

To run the proxy:

yarn proxy

By default it will run on: https://lcd.testnet.antlia.rnssol.com

to change this update value of target in proxy.js

Wallet URL shortener:

To Setup url shortener clone the code:

git clone https://github.com/antlia-io/url-shortner.git
cd url-shortner
docker-compose up

Wallet Docker Container:

Type the following command in terminal to run front end of wallet

docker run -p 9080:9080 -d rnssolutions/antliawallet:1.0.4

Wallet Manual Method

Clone the code from Antlia:

https://github.com/antlia-io/faucet-backend.git

Run following command by update the endpoint url:

QRCODE=https://wallet.testnet.antlia.org FAUCET=https://proxy.testnet.antlia.org:8010/claim/wallet SHORTURL=https://s.testnet.antlia.org/encode/ CHAIN=antlias-test-01 STARGATE=https://proxy.testnet.antlia.org:9061 RPC=https://rpc.testnet.antlia.org yarn build

Run following command to run wallet:

Set Faucet

Faucet consist of backend and frontend.

Setup faucet backend

Clone the code from Antlia:

git clone https://github.com/antlia-io/faucet-backend.git
cd faucet-backend

set the configuration in .env set FAUCET_KEY with with address of validator.

set FAUCET_KEY with with address of validator set FAUCET_PASS with pass of validator set FAUCET_CHAIN with faucet chain set FAUCET_HOME with path to validator cli a sample configuration is given in the .env file to run the faucet:

./faucet

Setup faucet frontend

Run the following command to run faucet frontend:

docker run -p 8080:8080 -d rnssolutions/antlia-faucet-frontend:0.0.9-rc

Manual Method

Clone the code from Antlia:

https://github.com/antlia-io/antlia-faucet-stable.git

Run the following command to build the faucet frontend:

NODE_ENV=production VUE_APP_CHAIN=antlias-test-01 VUE_APP_CLAIM_URL=https://proxy.testnet.antlia.org:8010/claim yarn build

Update your end point in above command run following command to run faucet frontend:

yarn serve:dist