Rename stack and container

This commit is contained in:
nabarun 2023-03-20 17:08:42 +05:30
parent 4add78b1b8
commit 7bd8be3b54
12 changed files with 17 additions and 17 deletions

View File

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

View File

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

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Build cerc/watcher-v2-mobymask # Build cerc/watcher-mobymask-v2
# See: https://stackoverflow.com/a/246128/1701505 # See: https://stackoverflow.com/a/246128/1701505
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) 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-erc721
cerc/watcher-uniswap-v3 cerc/watcher-uniswap-v3
cerc/uniswap-v3-info cerc/uniswap-v3-info
cerc/watcher-v2-mobymask cerc/watcher-mobymask-v2
cerc/react-peer cerc/react-peer
cerc/mobymask-ui cerc/mobymask-ui
cerc/test-container cerc/test-container

View File

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

View File

@ -1,19 +1,19 @@
# MobyMask v2 watcher # 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 ## Setup
Clone required repositories: Clone required repositories:
```bash ```bash
laconic-so --stack mobymask-v2-watcher setup-repositories laconic-so --stack mobymask-v2 setup-repositories
``` ```
Build the container images: Build the container images:
```bash ```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. 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: Deploy the stack:
```bash ```bash
laconic-so --stack mobymask-v2-watcher deploy-system up laconic-so --stack mobymask-v2 deploy-system up
``` ```
## Tests ## Tests
@ -43,5 +43,5 @@ docker exec -w /app/packages/peer $CONTAINER_ID yarn test
To stop all the services running in background run: To stop all the services running in background run:
```bash ```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" version: "1.0"
name: mobymask-v2-watcher name: mobymask-v2
repos: repos:
- cerc-io/watcher-ts - cerc-io/watcher-ts
- cerc-io/react-peer - cerc-io/react-peer
- cerc-io/mobymask-ui - cerc-io/mobymask-ui
containers: containers:
- cerc/watcher-v2-mobymask - cerc/watcher-mobymask-v2
- cerc/react-peer - cerc/react-peer
- cerc/mobymask-ui - cerc/mobymask-ui
pods: pods:
- watcher-v2-mobymask - watcher-mobymask-v2