Skip to content

docs: add instructions for running the published container image in the README - #329

Merged
arrry-hydraDB merged 2 commits into
hydra-db:mainfrom
matthewmcneely:docs/readme-docker-run
Nov 24, 2026
Merged

arrry-hydraDB merged 2 commits into
hydra-db:mainfrom
matthewmcneely:docs/readme-docker-run

Conversation

@matthewmcneely

@matthewmcneely matthewmcneely commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

We publish ghcr.io/hydra-db/hydradb on every release tag, but the README only explained how to build from source. This adds a Run with Docker section at the top of Getting Started, written to match the condensed v0.5.0 README.

What's in it:

  • Image name, platforms (linux/amd64, linux/arm64), and the tag scheme from container.yml (latest, 0.5.0, 0.5, 0, sha-<commit>)
  • A docker run for a single plaintext dev node with its store bind-mounted from .hydradb/store. Ports, token, and namespace match Run a local node, so the existing curl examples work against the container unchanged.
  • The uid 10001 gotcha. On Linux the bind-mounted store needs chown 10001:10001. --user isn't a workaround, because the image's cache dir is owned by 10001 and the node exits with Permission denied.
  • Notes on persistence, the advertised Bolt address, the extra binaries in the image, and that DataFusion and OTLP are compiled in

The Prerequisites lead-in now says it's for building from source.

Testing

Ran the documented command on Docker Desktop (macOS):

  • v0.5.0 (latest): /readyz OK. CREATE then MATCH over HTTP returned {"type":"vertex_id","value":2}
  • v0.4.0: same, plus a fresh container on the same store returned {'id': 2} over Bolt (Python neo4j driver), and GRAPH_CYPHER_ENGINE=datafusion started and round-tripped

I didn't test the Linux chown path.

While testing on v0.4.0 I noticed the DataFusion engine returns b.id as {"type":"integer","value":2} where the default engine returns {"type":"vertex_id","value":2}. That's out of scope here, but worth a look.

AI assistance

Drafted with Claude Code, which also ran the container checks above. I reviewed and edited the README changes.

🤖 Generated with Claude Code

@matthewmcneely
matthewmcneely requested a review from a team November 19, 2026 20:53
@openhack-agent

openhack-agent Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

✅ OpenHack Summary

Security review of docs: add instructions for running the published container image in the README. 1 changed file; 0 findings at or above the low reporting threshold.

P1: Critical 0   P2: High 0   P3: Medium 0   P4: Low 0

Confidence Score: 5/5

No reportable security findings were detected in this scan.

Security merge-readiness rubric: 1 = critical, 2 = high, 3 = medium, 4 = low, 5 = no reportable findings. This score reflects scan findings, not a guarantee of correctness or complete coverage.

Files Needing Attention: None

Important Files Changed
  • README.md (modified)

Last reviewed commit: 5c9500c · View review on OpenHack


TIP: Mention @openhack-agent in a PR comment to request a review or ask a question. Use @openhack-agent fix all for every finding, or @openhack-agent fix unresolved threads for open review threads only.

@openhack-agent openhack-agent Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OpenHack reviewed this commit. See the OpenHack Summary for the confidence score and fix actions.

Comment thread README.md Resolved
@matthewmcneely matthewmcneely changed the title Document running the published container image in the README docs: add instructions for running the published container image in the README Nov 19, 2026
Nishkarsh1606
Nishkarsh1606 previously approved these changes Nov 19, 2026
The README only covered building from source. Add a "Run with Docker"
section for ghcr.io/hydra-db/hydradb: tags, a docker run for a single
plaintext dev node, and the uid 10001 bind-mount gotcha on Linux.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@openhack-agent openhack-agent Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OpenHack reviewed this commit. See the OpenHack Summary for the confidence score and fix actions.

Comment thread README.md Resolved
chmod the dev auth token to 0600, publish the Bolt, HTTP, and admin
ports on loopback only, and say what production needs instead: a
unique random token from a secret manager, and TLS. On Linux the 0600
token also has to be chowned to uid 10001 or the node can't read it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@arrry-hydraDB
arrry-hydraDB merged commit 8e1506b into hydra-db:main Nov 24, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants