./mvnw clean compile
./mvnw package -DskipTests
docker network create ori
docker-compose -f ./ori-api/src/main/docker/docker-compose-jvm.yml up -d
Api may fail if postgresql takes too long to start!
docker-compose -f ori-api/src/main/docker/docker-compose-jvm.yml ps
Should output:
Name Command State Ports
----------------------------------------------------------------------------------------
docker_ori-api_1 /deployments/run-java.sh Up 0.0.0.0:8080->8080/tcp
docker_ori-postgresql_1 docker-entrypoint.sh postgres Up 0.0.0.0:5432->5432/tcp
NOTE: if ori-api not up, rerun 4 and 5 and it should get it up and running
docker-compose -f ./ori-chains/ori-cspr/src/main/docker/docker-compose.yml up -d
NOTE: An alternative to crawling is to load a sample of a crawler, just for testing purposes
docker exec -i docker_ori-postgresql_1 psql -U ori_db_user ori_db < ori-chains/ori-cspr/src/test/resources/db-sample/ori_db_sample.sql
docker-compose -f ori-chains/ori-cspr/src/main/docker/docker-compose.yml ps
Should output:
Name Command State Ports
----------------------------------------------------
docker_ori-cspr_1 /cnb/process/web Up
docker-compose -f ori-chains/ori-cspr/src/main/docker/docker-compose.yml logs -f
Should be up at http://localhost:8080.
It will take a while to populate useful data for testing.
You should access the postgres database with the credentials set in docker-compose.yml to check for accounts, transactions, blocks, etc.
You can use pgAdmin or Squirrel SQL to access the postgresql database.
docker-compose -f ori-dashboard/docker/docker-compose.yml up -d
docker-compose -f ori-dashboard/docker/docker-compose.yml ps
Should output:
Name Command State Ports
--------------------------------------------------------------------------------------
docker_dashboard_1 sh ./docker/entrypoint.sh Up (healthy) 0.0.0.0:8088->8088/tcp
Should be up at http://localhost:8088.
login: admin
password: admin