agentleFS
NVIDIAKnown publisherNVIDIA/nvcf/infra/cassandra/AGENTS.md

nvcf / cassandra

AGENTS.md261 starsChanged 9 days agoApache-2.0View on GitHub

Container image that runs Apache Cassandra for NVCF, built on the official cassandra image. Layers a Prometheus exporter agent (supplied at build time), yq for the chart's config init container, and an NCP rack-from-pod cassandra-env.sh. - Base: cassandra:5.0.9 (official Apache Cassandra, Docker Hub). Bump the Cassandra version by updating both the tag and digest in the FROM cassandra:<version>@sha256:<digest> line. The tag is the source of truth for the expected version; there is no version build-arg. - Trust store: the image…

The file

Files
AGENTS.md

AGENTS.md - cassandra runtime image

Container image that runs Apache Cassandra for NVCF, built on the official cassandra image. Layers a Prometheus exporter agent (supplied at build time), yq for the chart's config init container, and an NCP rack-from-pod cassandra-env.sh.

Image facts

  • Base: cassandra:5.0.9 (official Apache Cassandra, Docker Hub). Bump the Cassandra version by updating both the tag and digest in the FROM cassandra:<version>@sha256:<digest> line. The tag is the source of truth for the expected version; there is no version build-arg.
  • Trust store: the image copies Temurin's MPL-2.0 cacerts file. Keep NOTICE and its source revision current when changing that file.
  • yq: fetched in a pinned alpine:3.21 build stage and checksum-verified. The chart's config init container uses it to deep-merge cassandra.yaml overrides.
  • Exporter agent: not redistributed here. files/ ships only .gitkeep, and the Dockerfile defaults EXPORTER_JAR to it, so a bare build succeeds with no metrics agent. To enable metrics on port 9500, supply a jar under files/ and pass both --build-arg EXPORTER_JAR=files/<jar> and --build-arg EXPORTER_JAVAAGENT=-javaagent:/opt/cassandra/lib/cassandra-exporter-agent.jar. Both args are required together; the build rejects either mismatched combination. It replaces the jar's exact shaded Netty module set with checksum-pinned artifacts through scripts/repack-exporter-netty.sh and fails on an unexpected layout.
  • Maven downloads default to Maven Central. To route them through a caching repository manager pass --build-arg MAVEN_REPOSITORY_BASE=<base>; the artifact paths from java-libraries.lock and the SHA-256 checks are unchanged.

Build

# OSS build (no metrics agent)
docker build -t nvcf-cassandra:dev infra/cassandra

# multi-arch
docker buildx build --platform linux/amd64,linux/arm64 -t <ref> infra/cassandra

# download retry and checksum policy unit test (local server, no network)
infra/cassandra/scripts/fetch-verified-test.sh

# repository-base override and lock handling unit test (local server, no network)
infra/cassandra/scripts/fetch-java-libraries-test.sh

# exporter dependency unit test (downloads checksum-pinned Netty jars)
infra/cassandra/scripts/repack-exporter-netty-test.sh

# built image trust store and runtime version check
sh infra/cassandra/scripts/test-image.sh <image>

The --platform=$BUILDPLATFORM on the yq stage is intentional: it lets yq cross-download on the host arch without QEMU.

Pairs with

  • Helm chart deploy/helm/cassandra deploys this image; its config init container relies on the yq this image provides.
  • Schema migrations image migrations/cassandra.

cassandra-env.sh

scripts/cassandra-env.sh is the official Apache Cassandra cassandra-env.sh modified to derive CASSANDRA_RACK from the pod hostname suffix for GossipingPropertyFileSnitch (-0/-3/-6 -> r1, -1/-4/-7 -> r2, -2/-5/-8 -> r3) and write cassandra-rackdc.properties. It is Apache-2.0, derived from upstream; keep the SPDX header.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.