From d54abae449dc5b24fb13fc88e326465ece24d3ef Mon Sep 17 00:00:00 2001 From: nabarun Date: Fri, 24 Mar 2023 15:38:42 +0530 Subject: [PATCH] Add notes in readmes --- .../watcher-mobymask-v2/mobymask-app-start.sh | 1 + app/data/stacks/mobymask-v2/README.md | 36 +++++++++++++------ app/data/stacks/mobymask-v2/demo.md | 2 ++ 3 files changed, 28 insertions(+), 11 deletions(-) diff --git a/app/data/config/watcher-mobymask-v2/mobymask-app-start.sh b/app/data/config/watcher-mobymask-v2/mobymask-app-start.sh index 7064efdd..fa3870cf 100755 --- a/app/data/config/watcher-mobymask-v2/mobymask-app-start.sh +++ b/app/data/config/watcher-mobymask-v2/mobymask-app-start.sh @@ -1,4 +1,5 @@ #!/bin/sh +set -e # Merging config files to get deployed contract address jq -s '.[0] * .[1]' /app/src/mobymask-app-config.json /server/config.json > /app/src/config.json diff --git a/app/data/stacks/mobymask-v2/README.md b/app/data/stacks/mobymask-v2/README.md index e8ce46ee..83bfd259 100644 --- a/app/data/stacks/mobymask-v2/README.md +++ b/app/data/stacks/mobymask-v2/README.md @@ -10,21 +10,29 @@ Clone required repositories: laconic-so --stack mobymask-v2 setup-repositories ``` -Checkout to the required branches in repos +Checkout to the required versions and branches in repos -* mobymask-ui - ```bash - cd ~/cerc/mobymask-ui +```bash +# watcher-ts +cd ~/cerc/watcher-ts +git checkout v0.2.31 - git checkout laconic - ``` +# react-peer +cd ~/cerc/react-peer +git checkout v0.2.29 -* MobyMask - ```bash - cd ~/cerc/MobyMask +# mobymask-ui +cd ~/cerc/mobymask-ui +git checkout laconic - git checkout v0.1.1 - ``` +# laconicd +cd ~/cerc/laconicd +git checkout v0.8.0 + +# MobyMask +cd ~/cerc/MobyMask +git checkout v0.1.1 +``` Build the container images: @@ -84,6 +92,12 @@ Deploy the stack: * Check that all containers are healthy using `docker ps` + NOTE: The `mobymask-ui` container might not start. If mobymask-app is not running at http://localhost:3002, run command again to start the container + + ```bash + laconic-so --stack mobymask-v2 deploy-system --include watcher-mobymask-v2 up + ``` + ## Tests Find the watcher container's id: diff --git a/app/data/stacks/mobymask-v2/demo.md b/app/data/stacks/mobymask-v2/demo.md index 8f61fe34..af5ec2d0 100644 --- a/app/data/stacks/mobymask-v2/demo.md +++ b/app/data/stacks/mobymask-v2/demo.md @@ -6,6 +6,8 @@ laconic-so --stack mobymask-v2 deploy-system --include watcher-mobymask-v2 logs mobymask ``` + NOTE: Clear the browser cache (local storage) for http://127.0.0.1:3002 to remove old invitations + The invite link is seen at the end of the logs Example: ```