Skip to content

Commit

Permalink
feat(sdk): add cartesi-rollups-espresso-reader binary
Browse files Browse the repository at this point in the history
  • Loading branch information
endersonmaia committed Jan 30, 2025
1 parent 9a07738 commit 19a2546
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/yellow-wolves-battle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@cartesi/sdk": minor
---

add cartesi-rollups-espresso-reader binary
12 changes: 12 additions & 0 deletions packages/sdk/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ ARG SU_EXEC_VERSION
ARG ANVIL_VERSION
ARG CARTESI_ROLLUPS_GRAPHQL_VERSION
ARG ESPRESSO_DEV_NODE_TAG
ARG CARTESI_ESPRESSO_READER_VERSION

# https://github.com/EspressoSystems/espresso-sequencer/pkgs/container/espresso-sequencer%2Fespresso-dev-node
FROM ghcr.io/espressosystems/espresso-sequencer/espresso-dev-node:${ESPRESSO_DEV_NODE_TAG} AS espresso-dev-node
Expand Down Expand Up @@ -85,6 +86,15 @@ ARG TARGETARCH
RUN curl -fsSL https://github.com/cartesi/rollups-graphql/releases/download/v${CARTESI_ROLLUPS_GRAPHQL_VERSION}/cartesi-rollups-graphql-v${CARTESI_ROLLUPS_GRAPHQL_VERSION}-${TARGETOS}-${TARGETARCH}.tar.gz \
| tar -xzf - -C /usr/local/bin

################################################################################
# cartesi-rollups-espresso-reader installer
FROM base AS espresso-reader
ARG CARTESI_ESPRESSO_READER_VERSION
ARG TARGETOS
ARG TARGETARCH
RUN curl -fsSL https://github.com/cartesi/rollups-espresso-reader/releases/download/v${CARTESI_ESPRESSO_READER_VERSION}/cartesi-rollups-espresso-reader-v${CARTESI_ESPRESSO_READER_VERSION}-${TARGETOS}-${TARGETARCH}.tar.gz \
| tar -xzf - -C /usr/local/bin

################################################################################
# sdk final image
FROM base
Expand Down Expand Up @@ -158,6 +168,8 @@ COPY --from=crane /usr/local/bin/crane /usr/local/bin/
COPY --from=devnet /usr/local/lib/node_modules/@cartesi/devnet/export/abi/localhost.json /usr/share/cartesi/
COPY --from=devnet /usr/local/lib/node_modules/@cartesi/devnet/build/anvil_state.json /usr/share/cartesi/
COPY --from=graphql /usr/local/bin/cartesi-rollups-graphql /usr/local/bin/
COPY --from=espresso-reader /usr/local/bin/cartesi-rollups-espresso-reader /usr/local/bin/

RUN mkdir -p /tmp/.cartesi && chmod 1777 /tmp/.cartesi

# Install cartesi-machine emulator
Expand Down
1 change: 1 addition & 0 deletions packages/sdk/docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ target "default" {
ANVIL_VERSION = "0.3.0"
CARTESI_ROLLUPS_GRAPHQL_VERSION = "2.3.4"
ESPRESSO_DEV_NODE_TAG = "20241120-patch2"
CARTESI_ESPRESSO_READER_VERSION = "0.2.1-node-20250128"
}
}

0 comments on commit 19a2546

Please sign in to comment.