Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 1.39 KB

README.md

File metadata and controls

38 lines (29 loc) · 1.39 KB

ORI-chains

This module and its submodules make use of Spring Batch Job framework. The batch job pulls records from a specific chain, process them and insert the processed records into the ORI persistency layer through ori-api and using ori-client.

High-Level Design

  1. Reader the batch will read records from the specific Blockchain (normally using a java-api for the chain or JSON-RPC calls);
  2. Processor the batch will process the inputs from the chains and convert them into a format that ORI understands;
  3. Writer the batch will then output and write the data into ORI's database using ori-client.

Packaging

The application can be packaged using:

./mvnw package

This will create the required docker images with the crawlers ready for execution.

Also, you can override the following property settings with environment variables:

ORI_REST_API_SCHEME=http
ORI_REST_API_ADDRESS=localhost
ORI_REST_API_PORT=8080
ORI_CHAIN_SCHEME=http
ORI_CHAIN_ADDRESS=localhost
ORI_CHAIN_PORT=9090
ORI_BATCH_POSTGRES_HOST=ori-postgresql
ORI_BATCH_POSTGRES_PORT=5432
ORI_BATCH_POSTGRES_DB=ori_db
ORI_BATCH_POSTGRES_USER=ori_db_user
ORI_BATCH_POSTGRES_PASSWORD=ori_db_password

Specific crawlers