Infrastructural requirements for the installation are:
example.domain.com
)Create these resources before starting the installation and provision them with your RSA key to be able to connect to the VM instance using SSH.
Connect to the instance over SSH as a root
/admin
user and perform the following steps.
apt-get update
apt-get install -y -q git tmux gnupg2 dirmngr dbus htop curl libmariadbclient-dev-compat build-essential
curl -fsSL https://get.docker.com/ | bash
usermod -a -G docker $USER
COMPOSE_VERSION="1.23.2"
COMPOSE_URL="https://github.com/docker/compose/releases/download/$COMPOSE_VERSION/docker-compose-$(uname -s)-$(uname -m)"
curl -L "$COMPOSE_URL" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
groupadd app
useradd --create-home --home /home/app --shell /bin/bash \
--gid app --groups docker,sudo app
As the app
user(sudo su app
), run:
gpg2 --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
curl -sSL https://get.rvm.io | bash -s stable
source /home/app/.rvm/scripts/rvm
rvm install --quiet-curl 2.6.1
rvm use --default 2.6.1
gem install bundler
Clone the opendax repo to /home/app
git clone [email protected]:opendax
cd
into the opendax
directory and prepare config/app.yml
according to the README.
When the configuration is ready, run
bundle install
rake render:config
rake parity:import && \
until rake wallet:create['deposit','http://0.0.0.0:8545','changeme']; do sleep 15; done && \
rake wallet:create['hot','http://0.0.0.0:8545','changeme'] && \
rake wallet:create['warm','http://0.0.0.0:8545','changeme'] && \
rake render:config && \
rake service:all && \
chmod +x bin/install_webhook
./bin/install_webhook
After the deployment process is finished, the frontend would be accessible from the domain provided in the configuration.