From 53e9f3f094d7da38b0cb914bc1c32fca41a18411 Mon Sep 17 00:00:00 2001 From: Bourdelas Pablo Date: Thu, 11 Aug 2022 13:45:45 +0200 Subject: [PATCH] feat: add finastra token reporter --- .gitmodules | 3 +++ bin/init | 4 ++++ docker-compose.yml | 20 ++++++++++++++++++++ finastra-token-reporter | 1 + 4 files changed, 28 insertions(+) create mode 100644 .gitmodules create mode 160000 finastra-token-reporter diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..0e97ff0 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "finastra-token-reporter"] + path = finastra-token-reporter + url = https://github.com/castframework/finastra-token-reporter.git diff --git a/bin/init b/bin/init index b93ea6f..19a61f6 100755 --- a/bin/init +++ b/bin/init @@ -29,6 +29,10 @@ source $NVM_DIR/nvm.sh nvm use lerna bootstrap --strict --hoist +cd "${PRJT_ROOT}finastra-token-reporter" +npm install +cd "${PRJT_ROOT}" + ${CCR}/keyset-maker ${CCR}/build diff --git a/docker-compose.yml b/docker-compose.yml index 20d97ff..e8b2ca9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -121,3 +121,23 @@ services: AUTO_UPDATE: 'true' volumes: - ./mkdocs:/mkdocs/ + mongo: + container_name: mongo + image: 'mongo:latest' + restart: always + ports: + - '27017:27017' + finastra-reporter: + container_name: finastra-reporter + image: 'node:16.9.1-alpine3.14' + working_dir: /home/node/reporter + environment: + - PORT=3000 + - FIO_GQL_ENDPOINT=http://fio1:6660/graphql + - CORS_WHITELIST=https://finastra-cast-challenge.netlify.app,http://localhost:3000 + - MONGO_URI=mongodb://mongo:27017 + command: npm run start + ports: + - '3000:3000' + volumes: + - './finastra-token-reporter:/home/node/reporter' diff --git a/finastra-token-reporter b/finastra-token-reporter new file mode 160000 index 0000000..db1ecb6 --- /dev/null +++ b/finastra-token-reporter @@ -0,0 +1 @@ +Subproject commit db1ecb655131bb96fadb7a7d6a5f3287250e4955