Add a stack for mobymask-v2-watcher to run peer tests #222

Merged
nikugogoi merged 4 commits from ng-mobymask-v2-watcher into main 2023-03-20 12:55:39 +00:00
12 changed files with 17 additions and 17 deletions
Showing only changes of commit 7bd8be3b54 - Show all commits

View File

@ -26,12 +26,12 @@ services:
depends_on:
mobymask-watcher-db:
condition: service_healthy
image: cerc/watcher-v2-mobymask:local
image: cerc/watcher-mobymask-v2:local
command: ["sh", "-c", "yarn server"]
volumes:
- ../config/watcher-v2-mobymask/mobymask-v2-watcher.toml:/app/packages/mobymask-v2-watcher/environments/local.toml
- ../config/watcher-v2-mobymask/.env:/app/packages/peer/.env
- ../config/watcher-v2-mobymask/relay-id.json:/app/packages/mobymask-v2-watcher/relay-id.json
- ../config/watcher-mobymask-v2/watcher.toml:/app/packages/mobymask-v2-watcher/environments/local.toml
- ../config/watcher-mobymask-v2/.env:/app/packages/peer/.env
- ../config/watcher-mobymask-v2/relay-id.json:/app/packages/mobymask-v2-watcher/relay-id.json
ports:
- "0.0.0.0:3001:3001"
- "0.0.0.0:9001:9001"

View File

@ -7,6 +7,6 @@ WORKDIR /app
COPY . .
RUN echo "Building react-peer" && \
yarn
yarn && yarn workspace @cerc-io/react-peer build
WORKDIR /app

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Build cerc/watcher-v2-mobymask
# Build cerc/watcher-mobymask-v2
# See: https://stackoverflow.com/a/246128/1701505
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
docker build -t cerc/watcher-v2-mobymask:local -f ${SCRIPT_DIR}/Dockerfile ${CERC_REPO_BASE_DIR}/watcher-ts
docker build -t cerc/watcher-mobymask-v2:local -f ${SCRIPT_DIR}/Dockerfile ${CERC_REPO_BASE_DIR}/watcher-ts

View File

@ -18,7 +18,7 @@ cerc/watcher-erc20
cerc/watcher-erc721
cerc/watcher-uniswap-v3
cerc/uniswap-v3-info
cerc/watcher-v2-mobymask
cerc/watcher-mobymask-v2
cerc/react-peer
cerc/mobymask-ui
cerc/test-container

View File

@ -14,7 +14,7 @@ watcher-mobymask
watcher-erc20
watcher-erc721
watcher-uniswap-v3
watcher-v2-mobymask
watcher-mobymask-v2
test
eth-probe
keycloak

View File

@ -1,19 +1,19 @@
# MobyMask v2 watcher
Instructions to deploy MobyMask v2 watcher stack using [laconic-stack-orchestrator](../../README.md#setup)
Instructions to deploy MobyMask v2 watcher stack using [laconic-stack-orchestrator](/README.md#install)
## Setup
Clone required repositories:
```bash
laconic-so --stack mobymask-v2-watcher setup-repositories
laconic-so --stack mobymask-v2 setup-repositories
```
Build the container images:
```bash
laconic-so --stack mobymask-v2-watcher build-containers
laconic-so --stack mobymask-v2 build-containers
```
This should create the required docker images in the local image registry.
@ -21,7 +21,7 @@ This should create the required docker images in the local image registry.
Deploy the stack:
```bash
laconic-so --stack mobymask-v2-watcher deploy-system up
laconic-so --stack mobymask-v2 deploy-system up
```
## Tests
@ -43,5 +43,5 @@ docker exec -w /app/packages/peer $CONTAINER_ID yarn test
To stop all the services running in background run:
```bash
laconic-so --stack mobymask-v2-watcher deploy-system down
laconic-so --stack mobymask-v2 deploy-system down
```

View File

@ -1,12 +1,12 @@
version: "1.0"
name: mobymask-v2-watcher
name: mobymask-v2
repos:
- cerc-io/watcher-ts
- cerc-io/react-peer
- cerc-io/mobymask-ui
containers:
- cerc/watcher-v2-mobymask
- cerc/watcher-mobymask-v2
- cerc/react-peer
- cerc/mobymask-ui
pods:
- watcher-v2-mobymask
- watcher-mobymask-v2