Skip to content

Commit

Permalink
fixup! feat(sdk): add cartesi-rollups-hl-graphql binary
Browse files Browse the repository at this point in the history
  • Loading branch information
endersonmaia committed Dec 3, 2024
1 parent 4ebfc18 commit 94e65d3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .changeset/long-stingrays-work.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"@cartesi/sdk": major
---

add cartesi-rollups-hl-graphql binary
add cartesi-rollups-graphql binary
12 changes: 6 additions & 6 deletions packages/sdk/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ARG CRANE_VERSION
ARG NODEJS_VERSION
ARG SU_EXEC_VERSION
ARG ANVIL_VERSION
ARG HL_GRAPHQL_VERSION
ARG CARTESI_ROLLUPS_GRAPHQL_VERSION

################################################################################
# base image
Expand Down Expand Up @@ -73,12 +73,12 @@ ARG DEVNET_VERSION
RUN npm install -g @cartesi/devnet@${DEVNET_VERSION}

################################################################################
# hl-graphql installer
FROM base as hl-graphql
ARG HL_GRAPHQL_VERSION
# cartesi-rollups-graphql installer
FROM base AS graphql
ARG CARTESI_ROLLUPS_GRAPHQL_VERSION
ARG TARGETOS
ARG TARGETARCH
RUN curl -fsSL https://github.com/Calindra/cartesi-rollups-hl-graphql/releases/download/v${HL_GRAPHQL_VERSION}/cartesi-rollups-hl-graphql-v${HL_GRAPHQL_VERSION}-${TARGETOS}-${TARGETARCH}.tar.gz \
RUN curl -fsSL https://github.com/Calindra/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

################################################################################
Expand Down Expand Up @@ -153,7 +153,7 @@ COPY --from=su-exec /usr/local/src/su-exec /usr/local/bin/
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=hl-graphql /usr/local/bin/cartesi-rollups-hl-graphql /usr/local/bin/
COPY --from=graphql /usr/local/bin/cartesi-rollups-graphql /usr/local/bin/
RUN mkdir -p /tmp/.cartesi && chmod 1777 /tmp/.cartesi

# Install cartesi-machine emulator
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ target "default" {
NODEJS_VERSION = "18.19.0"
SU_EXEC_VERSION = "0.2"
ANVIL_VERSION = "2044faec64f99a21f0e5f0094458a973612d0712"
HL_GRAPHQL_VERSION = "2.1.1"
CARTESI_ROLLUPS_GRAPHQL_VERSION = "2.1.1"
}
}

0 comments on commit 94e65d3

Please sign in to comment.