| .. | ||
| records | ||
| .registry.env.example | ||
| alnt-pricing.yml | ||
| config.yml | ||
| deploy.sh | ||
| Dockerfile | ||
| laconic-cli.sh | ||
| publish-pricing.md | ||
| README.md | ||
| remove-deployment.sh | ||
| webapp-deployment-pricing.yml | ||
Deploy
Prerequisites
This project requires pricing records for cost of deployment and cost of alnt to be published
- Cost of deployment:
lrn://laconic/pricing/webapp-deployment - Cost of alnt:
lrn://laconic/pricing/alnt
If these records are not available, follow these steps to publish them
Setup
gor-deploy
-
Clone the repo:
git clone git@git.vdb.to:LaconicNetwork/gor-deploy.git cd gor-deploy/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:nano config.yml -
Add configuration for registry operations:
cp .registry.env.example .registry.env # Fill in the required values nano .registry.env -
Add configuration for the app:
curl -s https://git.vdb.to/LaconicNetwork/gor-deploy/src/branch/main/.env.example -o .app.env # Fill in the required values nano .app.env
Run
-
Deploy
gor-deployApp:# In gor-deploy/deploy dir docker run -it \ -v ./:/app/deploy -w /app/deploy \ -e DEPLOYMENT_DNS=gor-deploy \ cerc/laconic-registry-cli:latest \ ./deploy.sh -
Check deployment logs on deployer UI: https://webapp-deployer-ui.apps.vaasl.io/
-
Visit deployed app: https://gor-deploy.apps.vaasl.io
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