Skip to content

Commit

Permalink
Merge pull request #943 from input-output-hk/jpraynaud/fix-doc-curl-l…
Browse files Browse the repository at this point in the history
…atest-snapshot-digest

Fix curl commands for latest snapshot digest in docs
  • Loading branch information
jpraynaud committed May 30, 2023
2 parents c271d62 + 561d443 commit 2982c5a
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/root/manual/developer-docs/nodes/mithril-client.md
Expand Up @@ -200,7 +200,7 @@ export MITHRIL_IMAGE_ID=**YOUR_MITHRIL_IMAGE_ID**
export NETWORK=**YOUR_CARDANO_NETWORK**
export AGGREGATOR_ENDPOINT=**YOUR_AGGREGATOR_ENDPOINT**
export GENESIS_VERIFICATION_KEY=$(wget -q -O - **YOUR_GENESIS_VERIFICATION_KEY**)
export SNAPSHOT_DIGEST=$(curl -s $AGGREGATOR_ENDPOINT/snapshots | jq -r '.[0].digest')
export SNAPSHOT_DIGEST=$(curl -sL $AGGREGATOR_ENDPOINT/artifact/snapshots | jq -r '.[0].digest')
```

Here is an example configuration for the `release-preprod` network and the `latest` stable Docker image
Expand All @@ -210,7 +210,7 @@ export MITHRIL_IMAGE_ID=latest
export NETWORK=preprod
export AGGREGATOR_ENDPOINT=https://aggregator.release-preprod.api.mithril.network/aggregator
export GENESIS_VERIFICATION_KEY=$(wget -q -O - https://raw.githubusercontent.com/input-output-hk/mithril/main/mithril-infra/configuration/release-preprod/genesis.vkey)
export SNAPSHOT_DIGEST=$(curl -s $AGGREGATOR_ENDPOINT/snapshots | jq -r '.[0].digest')
export SNAPSHOT_DIGEST=$(curl -sL $AGGREGATOR_ENDPOINT/artifact/snapshots | jq -r '.[0].digest')
```

Then create a shell function for the Mithril Client
Expand Down
2 changes: 1 addition & 1 deletion docs/root/manual/getting-started/bootstrap-cardano-node.md
Expand Up @@ -212,7 +212,7 @@ export GENESIS_VERIFICATION_KEY=$(wget -q -O - **YOUR_GENESIS_VERIFICATION_KEY**

# Digest of the latest produced snapshot for convenience of the demo
# You can also modify this variable and set it to the value of the digest of a snapshot that you can retrieve at step 2
export SNAPSHOT_DIGEST=$(curl -s $AGGREGATOR_ENDPOINT/snapshots | jq -r '.[0].digest')
export SNAPSHOT_DIGEST=$(curl -sL $AGGREGATOR_ENDPOINT/artifact/snapshots | jq -r '.[0].digest')
```

### Step 2: Select A Snapshot
Expand Down
2 changes: 1 addition & 1 deletion docs/root/manual/getting-started/run-mithril-devnet.md
Expand Up @@ -445,7 +445,7 @@ AGGREGATOR_ENDPOINT=http://localhost:8080/aggregator

# Digest of the latest produced snapshot for convenience of the demo
# You can also modify this variable and set it to the value of the digest of a snapshot that you can retrieve at step 2
SNAPSHOT_DIGEST=$(curl -s $AGGREGATOR_ENDPOINT/snapshots | jq -r '.[0].digest')
SNAPSHOT_DIGEST=$(curl -sL $AGGREGATOR_ENDPOINT/artifact/snapshots | jq -r '.[0].digest')
```
### Step 2: Select A Snapshot
Expand Down
Expand Up @@ -200,7 +200,7 @@ export MITHRIL_IMAGE_ID=**YOUR_MITHRIL_IMAGE_ID**
export NETWORK=**YOUR_CARDANO_NETWORK**
export AGGREGATOR_ENDPOINT=**YOUR_AGGREGATOR_ENDPOINT**
export GENESIS_VERIFICATION_KEY=$(wget -q -O - **YOUR_GENESIS_VERIFICATION_KEY**)
export SNAPSHOT_DIGEST=$(curl -s $AGGREGATOR_ENDPOINT/snapshots | jq -r '.[0].digest')
export SNAPSHOT_DIGEST=$(curl -sL $AGGREGATOR_ENDPOINT/snapshots | jq -r '.[0].digest')
```

Here is an example configuration for the `release-preprod` network and the `latest` stable Docker image
Expand All @@ -210,7 +210,7 @@ export MITHRIL_IMAGE_ID=latest
export NETWORK=preprod
export AGGREGATOR_ENDPOINT=https://aggregator.release-preprod.api.mithril.network/aggregator
export GENESIS_VERIFICATION_KEY=$(wget -q -O - https://raw.githubusercontent.com/input-output-hk/mithril/main/mithril-infra/configuration/release-preprod/genesis.vkey)
export SNAPSHOT_DIGEST=$(curl -s $AGGREGATOR_ENDPOINT/snapshots | jq -r '.[0].digest')
export SNAPSHOT_DIGEST=$(curl -sL $AGGREGATOR_ENDPOINT/snapshots | jq -r '.[0].digest')
```

Then create a shell function for the Mithril Client
Expand Down
Expand Up @@ -212,7 +212,7 @@ export GENESIS_VERIFICATION_KEY=$(wget -q -O - **YOUR_GENESIS_VERIFICATION_KEY**

# Digest of the latest produced snapshot for convenience of the demo
# You can also modify this variable and set it to the value of the digest of a snapshot that you can retrieve at step 2
export SNAPSHOT_DIGEST=$(curl -s $AGGREGATOR_ENDPOINT/snapshots | jq -r '.[0].digest')
export SNAPSHOT_DIGEST=$(curl -sL $AGGREGATOR_ENDPOINT/snapshots | jq -r '.[0].digest')
```

### Step 2: Select A Snapshot
Expand Down
Expand Up @@ -445,7 +445,7 @@ AGGREGATOR_ENDPOINT=http://localhost:8080/aggregator

# Digest of the latest produced snapshot for convenience of the demo
# You can also modify this variable and set it to the value of the digest of a snapshot that you can retrieve at step 2
SNAPSHOT_DIGEST=$(curl -s $AGGREGATOR_ENDPOINT/snapshots | jq -r '.[0].digest')
SNAPSHOT_DIGEST=$(curl -sL $AGGREGATOR_ENDPOINT/snapshots | jq -r '.[0].digest')
```
### Step 2: Select A Snapshot
Expand Down

0 comments on commit 2982c5a

Please sign in to comment.