Publish repository records first

This commit is contained in:
Prathamesh Musale 2024-06-21 14:47:27 +05:30
parent 2d927050bc
commit d1980cfe69
2 changed files with 11 additions and 5 deletions

View File

@ -40,7 +40,7 @@ Instructions for running a laconicd fixturenet along with registry CLI and conso
## Create a deployment
* Create a spec file for the deployment:
* Create spec files for the deployment:
```bash
laconic-so --stack ~/cerc/fixturenet-laconicd-stack/stack-orchestrator/stacks/fixturenet-laconicd deploy init --output fixturenet-laconicd-spec.yml
@ -71,7 +71,7 @@ Instructions for running a laconicd fixturenet along with registry CLI and conso
- '8080:80'
```
* Create a deployment from the spec file:
* Create deployment from the spec files:
```bash
laconic-so --stack ~/cerc/fixturenet-laconicd-stack/stack-orchestrator/stacks/fixturenet-laconicd deploy create --spec-file fixturenet-laconicd-spec.yml --deployment-dir fixturenet-laconicd-deployment

View File

@ -23,13 +23,19 @@
```bash
# Example
cp -r /home/user/laconic-testnet-data/records/* laconic-console-deployment/data/laconic-registry-data/
cp -r /home/user/laconic-testnet-data/records/repo laconic-console-deployment/data/laconic-registry-data/
rsync -av --exclude 'repo' /home/user/laconic-testnet-data/records laconic-console-deployment/data/laconic-registry-data/
```
* Publish all records from the `laconic-registry-data` directory:
* Publish records from the `laconic-registry-data` directory:
```bash
laconic-so deployment --dir laconic-console-deployment exec cli "yarn ts-node demo/scripts/publish-records.ts --config config.yml --records /laconic-registry-data"
# Publish repository records first
laconic-so deployment --dir laconic-console-deployment exec cli "yarn ts-node demo/scripts/publish-records.ts --config config.yml --records /laconic-registry-data/repo"
# Publish rest of the records
laconic-so deployment --dir laconic-console-deployment exec cli "yarn ts-node demo/scripts/publish-records.ts --config config.yml --records /laconic-registry-data/records"
```
## Query