Skip to content

chore: SDK updates - #582

Draft
brunomenezes wants to merge 8 commits into
prerelease/v2-alphafrom
chore/sdk-updates
Draft

brunomenezes wants to merge 8 commits into
prerelease/v2-alphafrom
chore/sdk-updates

Conversation

@brunomenezes

@brunomenezes brunomenezes commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Summary

Updates the tools and components in the SDK image (packages/sdk) and moves it to the next Cartesi Machine generation (MARCHID 23).

Warning

The image does not build from the machine-emulator commit onwards, so CI is expected to fail. The released rollups-node 2.0.0-alpha.14 deb depends on cartesi-machine-emulator (<< 0.23.0). The fix is cartesi/rollups-node#831, still a draft with no tag (its head now pins emulator 0.23.0 too). A chore(sdk): bump rollups-node to <tag> commit follows once it is released.

Order: tool bumps → dave → machine-emulator → rollups-node (pending tag)

Changes

  • PostgreSQL base image: current postgres:18-trixie digest (18.7).
  • nodejs 24.22.3 (LTS, security releases) and nvm 0.41.0.
  • telegraf 1.40.3, now copied from the official telegraf:1.40.3-scratch image pinned by digest (TELEGRAF_BASE_IMAGE) instead of downloading and checksumming the release tarball. Same static binary, byte-identical on amd64 and arm64. Operators: 1.40.0 removed several deprecated plugins and options, so a Telegraf config relying on them stops loading (see the changeset).
  • squashfs-tools 4.7.5, which fixes a sparse-file corruption. Drive hashes and the machine template hash may change on rebuild.
  • alto 1.2.8 and passkey-server 1.0.3.
  • dave 3.0.0-beta.1: sling node and anvil devnet state for the new generation (Cartesi Machine 0.23, rollups-contracts 3.0.0-beta.1). Every rollups contract on the devnet moves, InputBox, the portals and the factories included. The sling node's settings are unchanged, but CARTESI_SLING_POLLING_INTERVAL now only accepts 1 to 60 seconds.
  • machine-emulator 0.23.0 (minor): the next machine generation, MARCHID 23, with a new pristine uarch hash and stored-machine archive version 9. Machines built by 0.22 cannot be loaded, so applications should be rebuilt and redeployed.

@brunomenezes brunomenezes self-assigned this Nov 19, 2026
@brunomenezes brunomenezes moved this to 🧑‍💻 In Progress in Rollups Tooling Nov 19, 2026
@changeset-bot

changeset-bot Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 42e20fb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@cartesi/sdk Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@endersonmaia

Copy link
Copy Markdown
Member

Consider tha latest debian trixie image release, postgresql always follows it later.

trixie-20261123

https://github.com/docker-library/official-images/pull/22848/changes

@endersonmaia

Copy link
Copy Markdown
Member

telegraf started release its container image as a "distroless/scratch" image, only the static binary and basic config.

We could change the installation method to something like this:

COPY --from=docker.io/library/telegraf:1.40.4-scratch \
        /usr/bin/telergaf /usr/bin/telegraf

There goes a patch if you wanna apply to this branch.

diff --git a/packages/sdk/Dockerfile b/packages/sdk/Dockerfile
index eed3a839..df6f34a0 100644
--- a/packages/sdk/Dockerfile
+++ b/packages/sdk/Dockerfile
@@ -2,6 +2,9 @@
 ARG CARTESI_BASE_IMAGE
 ARG POSTGRES_BASE_IMAGE
 ARG NODE_VERSION
+ARG TELEGRAF_VERSION
+
+FROM docker.io/library/telegraf:${TELEGRAF_VERSION}-scratch AS telegraf

 ################################################################################
 # base image
@@ -134,25 +137,6 @@ chmod +x /usr/local/bin/tini
 tini --version
 EOF

-################################################################################
-# install telegraf
-FROM base AS telegraf
-ARG TELEGRAF_VERSION
-ARG TARGETARCH
-WORKDIR /tmp
-RUN <<EOF
-curl -fsSL https://dl.influxdata.com/telegraf/releases/telegraf-${TELEGRAF_VERSION}_linux_${TARGETARCH}.tar.gz \
-    -o ./telegraf.tar.gz;
-case "${TARGETARCH}" in
-    amd64) echo "cbb95c43303db6e75e129a4eb8888ab1468009e61f6615e64a1cb82f50b0f4ce /tmp/telegraf.tar.gz" | sha256sum --check ;;
-    arm64) echo "53aa8a3c5083cd202e2b1140115ee1fd6096d5dc57f455b6dee32d3230432319 /tmp/telegraf.tar.gz" | sha256sum --check ;;
-    *) echo "unsupported architecture: ${TARGETARCH}"; exit 1 ;;
-esac
-tar -xvzf /tmp/telegraf.tar.gz -C / --strip-components=2 telegraf-${TELEGRAF_VERSION}/usr/bin/telegraf
-cp /usr/bin/telegraf /usr/local/bin/telegraf
-telegraf --version
-EOF
-
 ################################################################################
 # install sling-node
 FROM base AS sling-node
@@ -237,7 +221,7 @@ COPY --from=su-exec /usr/local/bin/su-exec /usr/local/bin/
 COPY --from=nitro /usr/local/src/nitro /usr/local/bin/
 COPY --from=nitro /usr/local/src/nitroctl /usr/local/bin/
 COPY --from=tini /usr/local/bin/tini /usr/local/bin/
-COPY --from=telegraf /usr/local/bin/telegraf /usr/local/bin/
+COPY --from=telegraf /usr/bin/telegraf /usr/local/bin/
 COPY --from=sling-node --chmod=755 /usr/local/bin/cartesi-sling-node /usr/local/bin/cartesi-sling-node

 COPY skel/ /

@brunomenezes
brunomenezes force-pushed the chore/sdk-updates branch 2 times, most recently from ed71db4 to 35b5aa3 Compare November 24, 2026 18:00
@brunomenezes
brunomenezes force-pushed the chore/sdk-updates branch 2 times, most recently from 2d84e0d to 42e20fb Compare November 26, 2026 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo
Status: 🧑‍💻 In Progress

Development

Successfully merging this pull request may close these issues.

2 participants