mtm-vpn-client-public/deploy
Nabarun ac61730d4a Update deployment URL (#5)
Reviewed-on: #5
Co-authored-by: Nabarun <nabarun@deepstacksoft.com>
Co-committed-by: Nabarun <nabarun@deepstacksoft.com>
2025-09-01 11:50:51 +00:00
..
records Create website for APK download (#2) 2025-08-14 06:43:49 +00:00
.gitignore Update website heading logo (#3) 2025-08-14 09:19:12 +00:00
.registry.env.example Create website for APK download (#2) 2025-08-14 06:43:49 +00:00
config.yml Create website for APK download (#2) 2025-08-14 06:43:49 +00:00
deploy.sh Update website heading logo (#3) 2025-08-14 09:19:12 +00:00
Dockerfile Create website for APK download (#2) 2025-08-14 06:43:49 +00:00
laconic-cli.sh Create website for APK download (#2) 2025-08-14 06:43:49 +00:00
README.md Update deployment URL (#5) 2025-09-01 11:50:51 +00:00
remove-deployment.sh Create website for APK download (#2) 2025-08-14 06:43:49 +00:00
reserve-new-authority.md Create website for APK download (#2) 2025-08-14 06:43:49 +00:00

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

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