mtm-vpn-client-public/deploy/README.md

2.0 KiB

Deploy

Setup

  • Clone the repo:

    git clone https://git.vdb.to/cerc-io/mtm-vpn-client-public.git
    cd mtm-vpn-client-public/deploy
    
  • Build registry CLI image:

    docker build -t cerc/laconic-registry-cli .
    
    # Builds image cerc/laconic-registry-cli:latest
    
  • Configure userKey and bondId in the registry CLI config:

    • User key should be of the account that owns the laconic-deploy authority (owner account address: laconic1kwx2jm6vscz38qlyujvq6msujmk8l3zangqahs)
    • The bond should also be owned by same user (owned bond's ID: 5d82586d156fb6671a9170d92f930a72a49a29afb45e30e16fff2100e30776e2)
    • If the authority is not available, follow these steps to reserve a new authority
    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:

Run

  • Deploy MTM VPN App:

    # In mtm-vpn-client-public/deploy dir
    docker run -it \
    -v ./:/app/deploy -w /app/deploy \
    -e DEPLOYMENT_DNS=markto.market \
    cerc/laconic-registry-cli:latest \
    ./deploy.sh
    
  • Check deployment logs on deployer UI: https://webapp-deployer-ui.apps.vaasl.io/

  • Visit deployed app: https://markto.market

Remove deployment

  • Remove deployment:

    # In mtm-vpn-client-public/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