Reviewed-on: #5 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 | ||
| reserve-new-authority.md | ||
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
userKeyandbondIdin the registry CLI config:- User key should be of the account that owns the
laconic-deployauthority (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 - User key should be of the account that owns the
-
Add configuration for registry operations:
cp .registry.env.example .registry.env # Update values if required nano .registry.env -
Add configuration for the app:
-
Copy the example environment file:
cp ../.env.example .app.env -
Open .app.env and update the
MTM_VPN_APK_URLvariable if required:NOTE: Use the download URL of APK from the latest stable release available at https://git.vdb.to/cerc-io/mtm-vpn-client-public/releases
nano .app.env
-
Run
-
Deploy MTM VPN App:
# In mtm-vpn-client-public/deploy dir docker run -it \ -v ./:/app/deploy -w /app/deploy \ -e DEPLOYMENT_DNS=vpn.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://vpn.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