Quick Start

The information above is based on AWS ec2 instance, ubuntu LTS 18.04

Requirements

Using Docker

  • for aligned environments, we recommend using Docker.

  • Please refer to these links if you have a problem while installing Docker.

# docker engine section
sudo apt-get remove -y docker docker-engine docker.io containerd runc &&
sudo apt-get update &&
sudo apt-get upgrade -y &&
sudo apt-get install -y \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg-agent \
    software-properties-common &&   
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - &&
sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable" &&
sudo apt-get update &&
sudo apt-get install docker-ce docker-ce-cli containerd.io -y

# docker compose section
sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
# sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

Download

  • Download source files here

  • Download a specific vault's settings.js file here

Setup Environments

  • See the configuration section.

  • Place your governance key into settings.js

  • If using infur for eth node, place your infura [PROJECT ID] into settings.js

VALIDATOR_ACCOUNT : {
    TYPE: "PK",
    DATA: "YOUR_PRIVATE_KEY_HERE",
}
  • Ddit your redis information into settings.js, docker-compose.yml

  • It is a hard requirement to match settings.js's REDIS_HOST and docker-compose.yml's service names.

REDIS_HOST: "redis",
REDIS_PORT: 6379,
REDIS_EXPIRE: 7200,
REDIS_DB : 1,

REDIS_EVENT_HOST: 'redis',
REDIS_EVENT_PORT: 6379,
REDIS_EVENT_DB: 1,
  • Ddit your mysql root account's secret into mysql-secret before launching Docker.

echo "MY_MYSQL_ROOT_PASSWORD" > bridge-dockerize/ethvault/mysql-secret
  • Edit your mysql information in settings.js, docker-compose.yml

  • It is a hard requirement to match settings.js's DB_HOST and docker-compose.yml's service names.

DB_HOST: 'mysql',
DB_PORT: '3306',
DB_USER: 'root',
DB_PASSWORD: mysqlSecret,
DB_DATABASE: 'bridge',
DB_CHARSET: 'utf8mb4',
DB_MIN_POOL_SIZE: 2,
DB_MAX_POOL_SIZE: 10,

Launch

tar xvzf bridge-dockerize-0.0.1.tar.gz
cp settings.js bridge-dockerize/ethvault/
sudo docker-compose -f bridge-dockerize/ethvault/docker-compose.yml up -d --build

Monitoring

sudo docker-compose -f bridge-dockerize/ethvault/docker-compose.yml logs -f nodes

Last updated