Repository navigation
feat(helm) #37: support ArcadeDB native images via image.flavor - #36
Merged
Merged
Conversation
Add image.flavor (jvm|native, default jvm). The native images have no shell, so the chart starts bin/arcadedb directly with the flags the image ENTRYPOINT would set, passes the logs directory as a -D argument, and drops the server.sh-only environment (ARCADEDB_LOG_DIR, ARCADEDB_PID, ARCADEDB_SETTINGS). The default tag becomes <appVersion>-native. Gremlin and custom plugin classes are not in the native binary, which would skip them silently, so enabling either fails the render. NOTES warns when extraEnvironment sets variables only server.sh reads. CI runs the kind integration test for the native flavor too (phase 8, the console check, is skipped: the image has no shell), and the weekly latest-image guard also covers latest-native. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Closes #37
Summary
ArcadeDB publishes experimental GraalVM native images (
arcadedata/arcadedb:<version>-native, multi-arch: scratch on amd64, distroless on arm64). The chart couldn't run them because it hardcodesbin/server.shand the native images have no shell.This PR adds
image.flavor(jvm|native, defaultjvm) to the existing chart instead of creating a second chart, because nearly every template is the same for both images.With
image.flavor=native:<appVersion>-native. An explicitimage.tagis used as given./home/arcadedb/bin/arcadedbdirectly. The chart repeats the image ENTRYPOINT flags (-Duser.home,-Dorg.jline.terminal.dumb, the logging config) and passes the logs directory as-Darcadedb.server.logsDirectory.server.shreads (ARCADEDB_LOG_DIR,ARCADEDB_PID,ARCADEDB_SETTINGS) and the console-Duser.dirpin.class:plugin is enabled. The native binary doesn't bundle these and would skip them without logging anything.extraEnvironmentsetsJAVA_OPTS,ARCADEDB_OPTS_MEMORYorARCADEDB_SETTINGS. For native, heap flags go througharcadedb.extraCommands(e.g.-Xmx2g).The JVM flavor renders exactly as before.
CI
integration-reusable.ymlgets aflavorinput.lint.ymladds anintegration-nativejob.latest-native.ci/integration-test.shskips phase 8 (console history) whenIMAGE_FLAVOR=native.Test plan
helm unittest: 236/236 pass, with the newtests/native_test.yamland two NOTES tests.helm lint: clean.image.flavor=native, 3 replicas: phases 1–7 pass, phase 8 skipped.Known issue (pre-existing, tracked in #38)
Both flavors log
arcadedb-log.properties: file not found. Using default settings. The volume the chart mounts at/home/arcadedb/confighides the image's logging config. It reproduces with the JVM image alone (docker run --tmpfs /home/arcadedb/config ...).🤖 Generated with Claude Code