mtm-vpn-dashboard/deploy
Nabarun c63fc5156b Integrate APIs for showing Bridge transactions and total APK download (#2)
- Show failed transactions separatley
- Remove mock data

Reviewed-on: #2
Co-authored-by: Nabarun <nabarun@deepstacksoft.com>
Co-committed-by: Nabarun <nabarun@deepstacksoft.com>
2025-09-03 02:29:41 +00:00
..
records Add deployment scripts and integrate APIs for dashboard (#1) 2025-09-02 11:53:55 +00:00
.gitignore Add deployment scripts and integrate APIs for dashboard (#1) 2025-09-02 11:53:55 +00:00
.registry.env.example Add deployment scripts and integrate APIs for dashboard (#1) 2025-09-02 11:53:55 +00:00
config.yml Add deployment scripts and integrate APIs for dashboard (#1) 2025-09-02 11:53:55 +00:00
deploy.sh Integrate APIs for showing Bridge transactions and total APK download (#2) 2025-09-03 02:29:41 +00:00
Dockerfile Add deployment scripts and integrate APIs for dashboard (#1) 2025-09-02 11:53:55 +00:00
laconic-cli.sh Add deployment scripts and integrate APIs for dashboard (#1) 2025-09-02 11:53:55 +00:00
README.md Integrate APIs for showing Bridge transactions and total APK download (#2) 2025-09-03 02:29:41 +00:00
remove-deployment.sh Add deployment scripts and integrate APIs for dashboard (#1) 2025-09-02 11:53:55 +00:00

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 userKey in the registry CLI config:

    • User key should be of the account that owns the laconic-deploy authority (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

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