4d3042bfcc
* Add mobymask-v2-watcher stack with peer tests * Rename stack and container * Avoid building react-peer container * Improve step for getting container ID Former-commit-id: 78310788729e245040d3144d41c57160be14d774
1.2 KiB
1.2 KiB
MobyMask v2 watcher
Instructions to deploy MobyMask v2 watcher stack using laconic-stack-orchestrator
Setup
Clone required repositories:
laconic-so --stack mobymask-v2 setup-repositories
Build the container images:
laconic-so --stack mobymask-v2 build-containers
This should create the required docker images in the local image registry.
Deploy the stack:
laconic-so --stack mobymask-v2 deploy-system up
Tests
Find the watcher container's id:
docker ps | grep "cerc/watcher-mobymask-v2:local"
Example output
8b38e9a64d7e cerc/watcher-mobymask-v2:local "sh -c 'yarn server'" 35 seconds ago Up 14 seconds (health: starting) 0.0.0.0:3001->3001/tcp, 0.0.0.0:9001->9001/tcp, 0.0.0.0:9090->9090/tcp laconic-aeb84676de2b0a7671ae90d537fc7d26-mobymask-watcher-server-1
In above output the container ID is 8b38e9a64d7e
Export it for later use:
export CONTAINER_ID=<CONTAINER_ID>
Run the peer tests:
docker exec -w /app/packages/peer $CONTAINER_ID yarn test
Clean up
To stop all the services running in background run:
laconic-so --stack mobymask-v2 deploy-system down