mtm-vpn-dashboard/deploy
2025-08-25 16:34:17 +05:30
..
records Add scripts for deploying to Laconic SP 2025-08-25 16:34:17 +05:30
.gitignore Add scripts for deploying to Laconic SP 2025-08-25 16:34:17 +05:30
.registry.env.example Add scripts for deploying to Laconic SP 2025-08-25 16:34:17 +05:30
config.yml Add scripts for deploying to Laconic SP 2025-08-25 16:34:17 +05:30
deploy.sh Add scripts for deploying to Laconic SP 2025-08-25 16:34:17 +05:30
Dockerfile Add scripts for deploying to Laconic SP 2025-08-25 16:34:17 +05:30
laconic-cli.sh Add scripts for deploying to Laconic SP 2025-08-25 16:34:17 +05:30
README.md Add scripts for deploying to Laconic SP 2025-08-25 16:34:17 +05:30
remove-deployment.sh Add scripts for deploying to Laconic SP 2025-08-25 16:34:17 +05:30

Deploy

Setup

  • Clone the repo and run the next set of steps inside cloned repo directory

  • 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
    
    # Fill in the required values
    nano .app.env
    

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