- Show failed transactions separatley - Remove mock data Reviewed-on: #2 Co-authored-by: Nabarun <nabarun@deepstacksoft.com> Co-committed-by: Nabarun <nabarun@deepstacksoft.com> |
||
|---|---|---|
| .. | ||
| records | ||
| .gitignore | ||
| .registry.env.example | ||
| config.yml | ||
| deploy.sh | ||
| Dockerfile | ||
| laconic-cli.sh | ||
| README.md | ||
| remove-deployment.sh | ||
Deploy
Setup
-
Clone the repo and change to the deploy directory
git clone git@git.vdb.to:cerc-io/mtm-vpn-dashboard.git cd mtm-vpn-dashboard/deploy -
Build registry CLI image:
docker build -t cerc/laconic-registry-cli . # Builds image cerc/laconic-registry-cli:latest -
Configure
userKeyin the registry CLI config:-
User key should be of the account that owns the
laconic-deployauthority (owner account address:laconic1kwx2jm6vscz38qlyujvq6msujmk8l3zangqahs) -
Account should also own the bond
5d82586d156fb6671a9170d92f930a72a49a29afb45e30e16fff2100e30776e2
nano config.yml -
-
Add configuration for registry operations:
cp .registry.env.example .registry.env # Update values if required nano .registry.env -
Add configuration for the app:
# Create env for deployment from example env cp ../.env.example .app.env -
Update the env variables in
.app.env# Public endpoint of mtm-to-nym-service NEXT_PUBLIC_MTM_SERVICE_URL=https://mtm-vpn.laconic.com # NYM chain RPC endpoint NEXT_PUBLIC_NYX_RPC_URL=https://rpc.nymtech.net # ETH chain RPC endpoint ETH_RPC_URL=
Run
-
Deploy
mtm-vpn-dashboardApp:# In mtm-vpn-dashboard/deploy dir docker run -it \ -v ./:/app/deploy -w /app/deploy \ -e DEPLOYMENT_DNS=mtm-vpn-dashboard \ cerc/laconic-registry-cli:latest \ ./deploy.sh -
Check deployment logs on deployer UI: https://webapp-deployer-ui.apps.vaasl.io/
-
Visit deployed app: https://gor-deploy.apps.vaasl.io
Remove deployment
-
Remove deployment:
# In gor-deploy/deploy dir docker run -it \ -v ./:/app/deploy -w /app/deploy \ -e DEPLOYMENT_RECORD_ID=<deploment-record-id-to-be-removed> \ cerc/laconic-registry-cli:latest \ ./remove-deployment.sh
Troubleshoot
-
Check records in registry console app.
-
If deployment fails due to low bond balance
-
Check balances
# Account balance ./laconic-cli.sh account get # Bond balance ./laconic-cli.sh bond get --id 5d82586d156fb6671a9170d92f930a72a49a29afb45e30e16fff2100e30776e2 -
Command to refill bond
./laconic-cli.sh bond refill --id 5d82586d156fb6671a9170d92f930a72a49a29afb45e30e16fff2100e30776e2 --type alnt --quantity 10000000
-