End to End Quickstart Script
To quickly set up an easy-to-use environment for the Trustlines Protocol, one can use the end2end quickstart package.
#
Get Up and RunningYou will need to have Docker and docker-compose
installed and configured. You must have at least version 1.18.0
of docker-compose
. Please refer to the official documentation and make sure your user is added
to the docker
user group if you cannot access root permissions to run containers.
You will also need python3.6 or up and pip.
To start installing the pre-requisites on Ubuntu 18.04, run the following command:
You should then clone the repository:
then create and activate a fresh virtual environment:
Finally, to install all dependencies and the quickstart script, run:
You can verify the proper installation by running quickstart --help
which should bring about the help.
#
Running the scriptTo test out the system with a private dev chain you can run
./run-e2e.sh -b
in the root folder of this repository.
This will launch all services configured in the docker-compose file.
The file addresses.json
contains the addresses of currency networks used by the relay.
The key and password for the blockchain node is in the keys
directory.
There is no persistence of the database of the events indexer used by the relay.
The script exposes the relay api on 127.0.0.1:5000
and the safe-relay on 127.0.0.1:8001
#
Stopping and restarting servicesYou can stop all services by stoping the script, or you can stop individual docker containers by using
docker stop <service>
.