-
Notifications
You must be signed in to change notification settings - Fork 26
client-cmds/nlean: use fork digest in gossip topic (leanSpec #622) #165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -6,8 +6,8 @@ | |||||||||||||||||||
| # NLEAN_REPO should point to this repository when lean-quickstart is outside this workspace. | ||||||||||||||||||||
| # Default assumes sibling checkouts: <workspace>/nlean and <workspace>/lean-quickstart. | ||||||||||||||||||||
| nlean_repo="${NLEAN_REPO:-$scriptDir/../nlean}" | ||||||||||||||||||||
| nlean_docker_image="${NLEAN_DOCKER_IMAGE:-ghcr.io/nleaneth/nlean:devnet3}" | ||||||||||||||||||||
| nlean_network_name="${NLEAN_NETWORK_NAME:-devnet0}" | ||||||||||||||||||||
| nlean_docker_image="${NLEAN_DOCKER_IMAGE:-ghcr.io/nleaneth/nlean:devnet4}" | ||||||||||||||||||||
| nlean_fork_digest="${NLEAN_FORK_DIGEST:-12345678}" | ||||||||||||||||||||
| log_level="${NLEAN_LOG_LEVEL:-}" | ||||||||||||||||||||
| enable_metrics="${enableMetrics:-false}" | ||||||||||||||||||||
|
|
||||||||||||||||||||
|
|
@@ -16,8 +16,8 @@ if [[ "$enable_metrics" != "true" && "$enable_metrics" != "false" ]]; then | |||||||||||||||||||
| enable_metrics="false" | ||||||||||||||||||||
| fi | ||||||||||||||||||||
|
|
||||||||||||||||||||
| if [[ -z "${nlean_network_name// }" ]]; then | ||||||||||||||||||||
| nlean_network_name="devnet0" | ||||||||||||||||||||
| if [[ -z "${nlean_fork_digest// }" ]]; then | ||||||||||||||||||||
| nlean_fork_digest="12345678" | ||||||||||||||||||||
|
Comment on lines
+19
to
+20
|
||||||||||||||||||||
| if [[ -z "${nlean_fork_digest// }" ]]; then | |
| nlean_fork_digest="12345678" | |
| nlean_fork_digest="${nlean_fork_digest#${nlean_fork_digest%%[![:space:]]*}}" | |
| nlean_fork_digest="${nlean_fork_digest%${nlean_fork_digest##*[![:space:]]}}" | |
| if [[ -z "$nlean_fork_digest" ]]; then | |
| nlean_fork_digest="12345678" | |
| elif [[ ! "$nlean_fork_digest" =~ ^[0-9a-fA-F]{8}$ ]]; then | |
| echo "Error: NLEAN_FORK_DIGEST must be exactly 8 hexadecimal characters" >&2 | |
| exit 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bumping the default image to
ghcr.io/nleaneth/nlean:devnet4while also switching this script to use--fork-digestcreates an inconsistency with the repo’s Ansible nlean role, which extracts this default image fromclient-cmds/nlean-cmd.shbut still starts the container with--network(seeansible/roles/nlean/tasks/main.yml). Ifdevnet4no longer supports--network, Ansible deployments will fail. Consider either updating the Ansible role in the same PR to pass--fork-digest, or keeping the default image pinned to a version that still accepts--networkuntil the Ansible change lands.