fix: bind community docker wallet to default key path#960
Open
zigengZ wants to merge 1 commit into
Open
Conversation
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
This PR updates the community Docker setup so the operator wallet is mounted at both key paths used by the container runtime:
/app/wallet.json/app/hb/hyperbeam-key.jsonIt also keeps
priv_key_locationexplicitly set to/app/wallet.jsonand documents that both paths must point to the same wallet.Why
The Docker entrypoint writes
priv_key_locationto/app/wallet.json, while HyperBEAM can also use its default key path under/app/hb/hyperbeam-key.json.Mounting the same wallet at both paths keeps the configured key path and runtime default key path aligned, so the node exposes the intended signer consistently.
How to use
Create the operator wallet at the repository root:
For example, if the repository is checked out at
~/HyperBEAM, the full path is:Then start the community Docker stack from
docs/community:cd docs/community docker compose up --build -dThe compose file references the wallet from that directory as:
and mounts the same file into the container at both runtime key paths:
No extra environment variable is required for this wallet binding.
Validation
git diff --check origin/feat/community-node..HEADbash -n docs/community/entrypoint.sh