Skip to content

fix(diag): install gnmic from a pinned release instead of curl|bash - #88

Merged
indigo423 merged 1 commit into
mainfrom
fix/diag-pin-gnmic
Jul 6, 2026
Merged

fix(diag): install gnmic from a pinned release instead of curl|bash#88
indigo423 merged 1 commit into
mainfrom
fix/diag-pin-gnmic

Conversation

@indigo423

Copy link
Copy Markdown
Contributor

The diag image installed gnmic via bash -c "$(curl -sL https://get-gnmic.openconfig.net)", which pulls and executes a remote
script fetching the latest release at build time. That made the build
non-deterministic and network-flaky — it failed intermittently in CI.

Pin GNMIC_VERSION and fetch the release tarball with ADD, extracting the
binary in the root RUN layer, matching how tini/ngrok/ping are handled.

Assisted-by: ClaudeCode:claude-opus-4-8
Signed-off-by: Ronny Trommer ronny@no42.org

The diag image installed gnmic via `bash -c "$(curl -sL
https://get-gnmic.openconfig.net)"`, which pulls and executes a remote
script fetching the latest release at build time. That made the build
non-deterministic and network-flaky — it failed intermittently in CI.

Pin GNMIC_VERSION and fetch the release tarball with ADD, extracting the
binary in the root RUN layer, matching how tini/ngrok/ping are handled.

Assisted-by: ClaudeCode:claude-opus-4-8
Signed-off-by: Ronny Trommer <ronny@no42.org>
@indigo423
indigo423 merged commit 66b5115 into main Jul 6, 2026
4 checks passed
@indigo423
indigo423 deleted the fix/diag-pin-gnmic branch July 6, 2026 19:31
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.

1 participant