From d1980cfe6966412f0396fbba9940dd32224446ed Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Fri, 21 Jun 2024 14:47:27 +0530 Subject: [PATCH] Publish repository records first --- .../stacks/fixturenet-laconicd/README.md | 4 ++-- .../stacks/fixturenet-laconicd/records-demo.md | 12 +++++++++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/stack-orchestrator/stacks/fixturenet-laconicd/README.md b/stack-orchestrator/stacks/fixturenet-laconicd/README.md index 5607c18..8dba1e3 100644 --- a/stack-orchestrator/stacks/fixturenet-laconicd/README.md +++ b/stack-orchestrator/stacks/fixturenet-laconicd/README.md @@ -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 diff --git a/stack-orchestrator/stacks/fixturenet-laconicd/records-demo.md b/stack-orchestrator/stacks/fixturenet-laconicd/records-demo.md index 4c92a87..a3075ed 100644 --- a/stack-orchestrator/stacks/fixturenet-laconicd/records-demo.md +++ b/stack-orchestrator/stacks/fixturenet-laconicd/records-demo.md @@ -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