Repository navigation
chore: SDK updates - #582
Draft
brunomenezes wants to merge 8 commits into
Draft
brunomenezes wants to merge 8 commits into
brunomenezes wants to merge 8 commits into
Conversation
🦋 Changeset detectedLatest commit: 42e20fb The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
brunomenezes
force-pushed
the
chore/sdk-updates
branch
from
November 23, 2026 15:02
6054213 to
1dccc63
Compare
Member
|
Consider tha latest debian trixie image release, postgresql always follows it later.
https://github.com/docker-library/official-images/pull/22848/changes |
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/telegrafThere 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
force-pushed
the
chore/sdk-updates
branch
2 times, most recently
from
November 24, 2026 18:00
ed71db4 to
35b5aa3
Compare
brunomenezes
force-pushed
the
chore/sdk-updates
branch
2 times, most recently
from
November 26, 2026 19:16
2d84e0d to
42e20fb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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). Achore(sdk): bump rollups-node to <tag>commit follows once it is released.Order: tool bumps → dave → machine-emulator → rollups-node (pending tag)
Changes
postgres:18-trixiedigest (18.7).telegraf:1.40.3-scratchimage 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).InputBox, the portals and the factories included. The sling node's settings are unchanged, butCARTESI_SLING_POLLING_INTERVALnow only accepts 1 to 60 seconds.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.