Add ops instructions to setup snowball frontend and backend #32

Merged
nabarun merged 21 commits from deep-stack/testnet-laconicd-stack:ag-snowball-docs into main 2024-10-30 10:16:29 +00:00
3 changed files with 78 additions and 8 deletions
Showing only changes of commit 900b2f76d3 - Show all commits

View File

@ -12,7 +12,7 @@
dbPath = "/data/db/snowball" dbPath = "/data/db/snowball"
[gitHub] [gitHub]
webhookUrl = "" webhookUrl = "https://snowball-backend.pwa.laconic.com"
[gitHub.oAuth] [gitHub.oAuth]
clientId = "" clientId = ""
clientSecret = "" clientSecret = ""
@ -30,12 +30,12 @@
[registryConfig] [registryConfig]
fetchDeploymentRecordDelay = 5000 fetchDeploymentRecordDelay = 5000
checkAuctionStatusDelay = 5000 checkAuctionStatusDelay = 5000
restEndpoint = "" restEndpoint = "https://laconicd.laconic.com"
gqlEndpoint = "" gqlEndpoint = "https://laconicd.laconic.com/api"
chainId = "" chainId = "laconic_9000-2"
privateKey = "" privateKey = ""
bondId = "" bondId = ""
authority = "" authority = "snowballtools"
[registryConfig.fee] [registryConfig.fee]
gasPrice = "1alnt" gasPrice = "1alnt"

View File

@ -1234,12 +1234,14 @@
</details> </details>
<details open>
<summary>snowball-backend</summary>
## Snowball Backend ## Snowball Backend
* Stack: <https://git.vdb.to/cerc-io/snowballtools-base-api-stack/src/branch/main/stack-orchestrator/stacks/snowballtools-base-backend> * Stack: <https://git.vdb.to/cerc-io/snowballtools-base-api-stack/src/branch/main/stack-orchestrator/stacks/snowballtools-base-backend>
* Source repos: * Source repo: <https://git.vdb.to/cerc-io/snowballtools-base>
* <https://git.vdb.to/cerc-io/snowballtools-base>
* Target dir: `/srv/snowball/snowball-deployment` * Target dir: `/srv/snowball/snowball-deployment`
@ -1316,6 +1318,8 @@
wget -O /srv/snowball/snowball-deployment/data/config/local.toml https://git.vdb.to/cerc-io/testnet-laconicd-stack/raw/branch/main/ops/configs/snowball-config.toml wget -O /srv/snowball/snowball-deployment/data/config/local.toml https://git.vdb.to/cerc-io/testnet-laconicd-stack/raw/branch/main/ops/configs/snowball-config.toml
``` ```
* Reserve authority `snowballtools` using a funded account and create a bond
* Update `/srv/snowball/snowball-deployment/data/config/local.toml` with the required values * Update `/srv/snowball/snowball-deployment/data/config/local.toml` with the required values
### Start ### Start
@ -1333,6 +1337,72 @@
laconic-so deployment --dir snowball-deployment logs snowballtools-base-backend -f laconic-so deployment --dir snowball-deployment logs snowballtools-base-backend -f
``` ```
</details>
<details open>
<summary>snowball-frontend</summary>
## Snowball Frontend
* Source repo: <https://git.vdb.to/cerc-io/snowballtools-base>
### Setup
* On your local machine, clone the `snowballtools-base` repo:
```bash
git clone git@git.vdb.to:cerc-io/snowballtools-base.git
```
* Install dependencies:
```bash
cd snowballtools-base
yarn install
```
* In the deployer package, create required env:
```bash
cd packages/deployer
cp .env.example .env
```
Set the required variables:
```bash
REGISTRY_BOND_ID=<bond-id>
DEPLOYER_LRN=<target-deployer-lrn>
```
* Update required laconic config:
```bash
# Replace <user-pk> and <bond-id>
cat <<EOF > config.yml
services:
registry:
rpcEndpoint: https://laconicd.laconic.com
gqlEndpoint: https://laconicd.laconic.com/api
userKey: <user-pk>
bondId: <bond-id>
chainId: laconic_9000-2
gasPrice: 1alnt
EOF
```
### Run
* Run frontend deployment script:
```bash
./deploy-frontend.sh
```
Follow deployment logs on the deployer UI
</details>
## Domains / Port Mappings ## Domains / Port Mappings
```bash ```bash

View File

@ -64,7 +64,7 @@
# } # }
``` ```
* TODO: Get L1 tokens on your address * Request tokens for your address from Laconic
* Edit `nitro-vars.yml` and add the following variables: * Edit `nitro-vars.yml` and add the following variables: