diff --git a/.changeset/long-stingrays-work.md b/.changeset/long-stingrays-work.md new file mode 100644 index 0000000..364b6ae --- /dev/null +++ b/.changeset/long-stingrays-work.md @@ -0,0 +1,5 @@ +--- +"@cartesi/sdk": major +--- + +add cartesi-rollups-hl-graphql binary diff --git a/packages/sdk/Dockerfile b/packages/sdk/Dockerfile index 7bc3b4d..95d49ec 100644 --- a/packages/sdk/Dockerfile +++ b/packages/sdk/Dockerfile @@ -8,6 +8,7 @@ ARG CRANE_VERSION ARG NODEJS_VERSION ARG SU_EXEC_VERSION ARG ANVIL_VERSION +ARG HL_GRAPHQL_VERSION ################################################################################ # base image @@ -71,6 +72,15 @@ FROM node:${NODEJS_VERSION}-bookworm AS devnet ARG DEVNET_VERSION RUN npm install -g @cartesi/devnet@${DEVNET_VERSION} +################################################################################ +# hl-graphql installer +FROM base as hl-graphql +ARG HL_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 \ + | tar -xzf - -C /usr/local/bin + ################################################################################ # sdk final image FROM base @@ -143,6 +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/ RUN mkdir -p /tmp/.cartesi && chmod 1777 /tmp/.cartesi # Install cartesi-machine emulator diff --git a/packages/sdk/docker-bake.hcl b/packages/sdk/docker-bake.hcl index 9215556..0fb836e 100644 --- a/packages/sdk/docker-bake.hcl +++ b/packages/sdk/docker-bake.hcl @@ -16,5 +16,6 @@ target "default" { NODEJS_VERSION = "18.19.0" SU_EXEC_VERSION = "0.2" ANVIL_VERSION = "2044faec64f99a21f0e5f0094458a973612d0712" + HL_GRAPHQL_VERSION = "2.1.1" } }