Skip to content

Commit

Permalink
bump cardano-node and cardano-db-sync (#573)
Browse files Browse the repository at this point in the history
* update node and db-sync

* bump cardano-db-sync version

* Update README.md

* updating the cardano-db-sync version to 13.5.0.2
  • Loading branch information
Kartiiyer12 authored Sep 9, 2024
1 parent d47cb52 commit a91af68
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 17 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ ARG IOHK_LIBSODIUM_GIT_REV=dbb48cce
ARG SECP256K1_VERSION=v0.3.2
ARG BLST_VERSION=v0.3.11

ARG NODE_VERSION=9.1.0
ARG CARDANO_DB_SYNC_VERSION=13.4.0.0
ARG NODE_VERSION=9.1.1
ARG CARDANO_DB_SYNC_VERSION=13.5.0.2

RUN mkdir -p /app/src
WORKDIR /app
Expand Down
27 changes: 13 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ DOCKER_BUILDKIT=1 \
docker build \
--build-arg BUILDKIT_INLINE_CACHE=1 \
--cache-from=cardanofoundation/cardano-rosetta:master \
-t cardanofoundation/cardano-rosetta:2.3.2 \
-t cardanofoundation/cardano-rosetta:2.3.3 \
.
```
</details>
Expand All @@ -36,7 +36,7 @@ docker build \
--build-arg BUILDKIT_INLINE_CACHE=1 \
--build-arg NETWORK=preprod \
--cache-from=cardanofoundation/cardano-rosetta:master \
-t cardanofoundation/cardano-rosetta:2.3.2-preprod \
-t cardanofoundation/cardano-rosetta:2.3.3-preprod \
.
```

Expand All @@ -51,7 +51,7 @@ docker build \
--build-arg BUILDKIT_INLINE_CACHE=1 \
--build-arg NETWORK=preview \
--cache-from=cardanofoundation/cardano-rosetta:master \
-t cardanofoundation/cardano-rosetta:2.3.2-preview \
-t cardanofoundation/cardano-rosetta:2.3.3-preview \
.
```

Expand All @@ -64,10 +64,10 @@ DOCKER_BUILDKIT=1 \
docker build \
--build-arg BUILDKIT_INLINE_CACHE=1 \
--build-arg NETWORK=sanchonet \
--build-arg CARDANO_DB_SYNC_VERSION=13.4.0.0 \
--build-arg CARDANO_DB_SYNC_VERSION=13.5.0.2 \
--build-arg DB_SYNC_TAG=sanch-5-1-0
--cache-from=cardanofoundation/cardano-rosetta:master \
-t cardanofoundation/cardano-rosetta:2.3.2-sanchonet \
-t cardanofoundation/cardano-rosetta:2.3.3-sanchonet \
.
```
</details>
Expand All @@ -86,7 +86,7 @@ docker run \
-p 8080:8080 \
-v cardano-rosetta:/data \
--shm-size=2g \
cardanofoundation/cardano-rosetta:2.3.2
cardanofoundation/cardano-rosetta:2.3.3
```
</details>

Expand All @@ -99,7 +99,7 @@ docker run \
-p 8081:8080 \
-v cardano-rosetta-preprod:/data \
--shm-size=2g \
cardanofoundation/cardano-rosetta:2.3.2-preprod
cardanofoundation/cardano-rosetta:2.3.3-preprod
```

</details>
Expand All @@ -113,7 +113,7 @@ docker run \
-p 8081:8080 \
-v cardano-rosetta-preview:/data \
--shm-size=2g \
cardanofoundation/cardano-rosetta:2.3.2-preview
cardanofoundation/cardano-rosetta:2.3.3-preview
```

</details>
Expand All @@ -127,7 +127,7 @@ docker run \
-p 8081:8080 \
-v cardano-rosetta-preview:/data \
--shm-size=2g \
cardanofoundation/cardano-rosetta:2.3.2-sanchonet
cardanofoundation/cardano-rosetta:2.3.3-sanchonet
```

</details>
Expand Down Expand Up @@ -178,8 +178,7 @@ docker run --rm -v cardano-rosetta:/data ubuntu rm -rf /data/postgresql /data/db
... then start a container as per usual. Sync progress will be logged by the new container.

#### 2. Apply a Trusted `cardano-db-sync` Snapshot
Run the build command with the addition of an argument providing a version and network-specific
link, sourced from the `cardano-db-sync` [release notes](https://github.com/input-output-hk/cardano-db-sync/releases).
Run the build command with the addition of an argument providing the most recent weekly snapshot link (https://update-cardano-mainnet.iohk.io/cardano-db-sync/index.html) and set is as 'SNAPSHOT_URL' below.
For example:

##### Build
Expand All @@ -190,10 +189,10 @@ For example:
DOCKER_BUILDKIT=1 \
docker build \
--build-arg BUILDKIT_INLINE_CACHE=1 \
--build-arg SNAPSHOT_URL=https://update-cardano-mainnet.iohk.io/cardano-db-sync/13.4/db-sync-snapshot-schema-13.4-block-10683068-x86_64.tgz \
--build-arg SNAPSHOT_URL=https://update-cardano-mainnet.iohk.io/cardano-db-sync/13.5/db-sync-snapshot-schema-13.5-block-10781364-x86_64.tgz \
--cache-from=cardanofoundation/cardano-rosetta:master \
-t cardanofoundation/cardano-rosetta:2.3.2-apply-snapshot \
https://github.com/cardanofoundation/cardano-rosetta.git#2.3.2
-t cardanofoundation/cardano-rosetta:2.3.3-apply-snapshot \
https://github.com/cardanofoundation/cardano-rosetta.git#2.3.3
```

</details>
Expand Down
2 changes: 1 addition & 1 deletion cardano-rosetta-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cardano-rosetta-server",
"version": "2.2.2",
"version": "2.3.3",
"description": "Rosetta API server specification implementation",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit a91af68

Please sign in to comment.