Handle deployment auction requests #19

Merged
ashwin merged 3 commits from deep-stack/webapp-deployment-status-api:pm-handle-auctions into main 2024-10-21 07:07:07 +00:00
Showing only changes of commit 8fc3d99135 - Show all commits

View File

@ -66,7 +66,7 @@ Users can optionally create an auction for app deployment with desired number of
```bash ```bash
laconic-so publish-deployment-auction \ laconic-so publish-deployment-auction \
--laconic-config ./config.yml \ --laconic-config ./config.yml \
--app lrn://deepstack/applications/pwa-test-13 \ --app lrn://cerc-io/applications/webapp-hello-world@0.1.3 \
--commits-duration 3600 \ --commits-duration 3600 \
--reveals-duration 3600 \ --reveals-duration 3600 \
--commit-fee 10000 \ --commit-fee 10000 \
@ -107,7 +107,19 @@ laconic-so request-webapp-deployment \
--auction-id 4c9701c22651e143202e991056b6e7649853acc5bc0e97e3a98e09c9f3355909 --auction-id 4c9701c22651e143202e991056b6e7649853acc5bc0e97e3a98e09c9f3355909
``` ```
Similar to requests with payments, the config is automatically encrypted and uploaded to all the deployers who have won the auction. This creates deployment requests targeted towards all the deployers who have won the auction. Similar to requests with payments, the config is automatically encrypted and uploaded to all the deployers.
### Request Undeployment
Users can also request removal of an existing deployment using the deployment record id:
```bash
laconic-so request-webapp-undeployment \
--laconic-config ~/.laconic/registry.yml \
--deployer lrn://laconic/deployers/webapp-deployer-api.my.domain.com \
--deployment bafyreigeopr72dmp6rhvnomgdz3cljbqzhh75epcrigit7ue6i6vjullme \
--make-payment auto
```
### Example Config ### Example Config