Update demo steps for stack records
This commit is contained in:
parent
d1980cfe69
commit
9f692bc1bc
@ -17,7 +17,7 @@ Instructions for running a laconicd fixturenet along with registry CLI and conso
|
|||||||
# laconicd
|
# laconicd
|
||||||
laconic-so --stack ~/cerc/fixturenet-laconicd-stack/stack-orchestrator/stacks/fixturenet-laconicd setup-repositories
|
laconic-so --stack ~/cerc/fixturenet-laconicd-stack/stack-orchestrator/stacks/fixturenet-laconicd setup-repositories
|
||||||
|
|
||||||
# laocnic cli and console
|
# laconic cli and console
|
||||||
laconic-so --stack ~/cerc/testnet-laconicd-stack/stack-orchestrator/stacks/laconic-console setup-repositories
|
laconic-so --stack ~/cerc/testnet-laconicd-stack/stack-orchestrator/stacks/laconic-console setup-repositories
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -27,7 +27,7 @@ Instructions for running a laconicd fixturenet along with registry CLI and conso
|
|||||||
# laconicd
|
# laconicd
|
||||||
laconic-so --stack ~/cerc/fixturenet-laconicd-stack/stack-orchestrator/stacks/fixturenet-laconicd build-containers
|
laconic-so --stack ~/cerc/fixturenet-laconicd-stack/stack-orchestrator/stacks/fixturenet-laconicd build-containers
|
||||||
|
|
||||||
# laocnic cli and console
|
# laconic cli and console
|
||||||
laconic-so --stack ~/cerc/testnet-laconicd-stack/stack-orchestrator/stacks/laconic-console build-containers
|
laconic-so --stack ~/cerc/testnet-laconicd-stack/stack-orchestrator/stacks/laconic-console build-containers
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Example
|
# Example
|
||||||
cp -r /home/user/laconic-testnet-data/records/repo laconic-console-deployment/data/laconic-registry-data/
|
cp -r /home/user/laconic-testnet-data/records/repo laconic-console-deployment/data/laconic-registry-data/repo-records
|
||||||
|
|
||||||
rsync -av --exclude 'repo' /home/user/laconic-testnet-data/records laconic-console-deployment/data/laconic-registry-data/
|
rsync -av --exclude 'repo' /home/user/laconic-testnet-data/records laconic-console-deployment/data/laconic-registry-data/
|
||||||
```
|
```
|
||||||
@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Publish repository records first
|
# 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"
|
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-records"
|
||||||
|
|
||||||
# Publish rest of the records
|
# 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"
|
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"
|
||||||
@ -83,17 +83,22 @@
|
|||||||
https://ajna-watcher-endpoint.example.com
|
https://ajna-watcher-endpoint.example.com
|
||||||
```
|
```
|
||||||
|
|
||||||
* Find the `RepositoryRecord` for `ajna-watcher-ts` repo:
|
* Query for `bsc-node` stack:
|
||||||
|
|
||||||
|
* Find the `StackRecord` for `bsc-node` stack:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
laconic-so deployment --dir laconic-console-deployment exec cli "laconic registry record list --all --type RepositoryRecord --name ajna-watcher-ts"
|
laconic-so deployment --dir laconic-console-deployment exec cli "laconic registry record list --all --type StackRecord --name bsc-node"
|
||||||
|
|
||||||
|
# Get the repo record id
|
||||||
|
STACK_REPO_RECORD_ID=$(laconic-so deployment --dir laconic-console-deployment exec cli "laconic registry record list --all --type StackRecord --name bsc-node | jq -r '.[].attributes.repository'")
|
||||||
|
```
|
||||||
|
|
||||||
|
* Find the corresponding `RepositoryRecord`:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
laconic-so deployment --dir laconic-console-deployment exec cli "laconic registry record get --id $STACK_REPO_RECORD_ID"
|
||||||
|
|
||||||
# Get the repo URL
|
# Get the repo URL
|
||||||
laconic-so deployment --dir laconic-console-deployment exec cli "laconic registry record list --all --type RepositoryRecord --name ajna-watcher-ts | jq -r '.[].attributes.url'"
|
laconic-so deployment --dir laconic-console-deployment exec cli "laconic registry record get --id $STACK_REPO_RECORD_ID | jq -r '.[].attributes.url'"
|
||||||
```
|
|
||||||
|
|
||||||
* Find the `StackRecord` for `ajna` stack:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
laconic-so deployment --dir laconic-console-deployment exec cli "laconic registry record list --all --type StackRecord --name ajna"
|
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user