Skip to content

Install credhub binary from amd64 tarball in deployment image - #703

Merged
aramprice merged 1 commit into
mainfrom
fix/credhub-deployment-image
Nov 19, 2026
Merged

aramprice merged 1 commit into
mainfrom
fix/credhub-deployment-image

Conversation

@aramprice

Copy link
Copy Markdown
Member

Problem

bump-bbl-deployment-image #72 (and #71) fail at the credhub install step:

mv: target '/usr/local/bin/credhub': No such file or directory

credhub-cli 2.9.64 publishes both credhub-linux-amd64-*.tgz and credhub-linux-arm64-*.tgz. The select(contains("linux")) filter matched both, so mv got two sources and a non-directory target.

There was also an older bug hidden by this one. The assets have always been .tgz archives that contain ./credhub, so images built before this change installed the tarball itself as /usr/local/bin/credhub, not a runnable binary.

Fix

  • Filter on linux-amd64, matching the bosh-cli and ytt steps.
  • Extract the archive into /usr/local/bin and remove the tarball, following the cf step.

Verification

I ran the updated step in a golang:latest linux/amd64 container:

CLI Version: 2.9.64

🤖 Generated with Claude Code

credhub-cli 2.9.64 added a linux-arm64 asset, so the `contains("linux")`
filter downloaded two tarballs and `mv credhub-* /usr/local/bin/credhub`
failed with "target is not a directory", breaking bump-bbl-deployment-image
builds 71 and 72.

The assets have always been .tgz archives containing ./credhub, so prior
images installed the tarball itself as /usr/local/bin/credhub rather than
a runnable binary. Filter on linux-amd64 (matching the bosh-cli and ytt
steps) and extract the archive, as the cf step does.

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

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The deployment Dockerfile now selects Credhub release assets that match linux-amd64. It extracts the downloaded archive into /usr/local/bin and removes the archive. The existing executable permission command remains.

Suggested reviewers: ramonskie

Merge Risk: Minimal · up to 0a2ac

The deployment image now installs the CredHub binary from the amd64 archive instead of failing on a mismatched asset match. No concrete merge risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the deployment image now installs the credhub binary from the linux-amd64 tarball. The raw summary confirms the Dockerfile now matches only linux-amd64 assets and extr…
Description check Passed The description states the problem (bump-bbl-deployment-image builds 71 and 72 failing at the credhub install step with a mv error), explains the cause (the linux filter matched both amd64 and arm64 a…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: the deployment image now installs the credhub binary from the linux-amd64 tarball. The raw summary confirms the Dockerfile now matches only linux-amd64 assets and extracts the archive into /usr/local/bin. The title is specific and matches the changeset.

Full details: Description check

Explanation

The description states the problem (bump-bbl-deployment-image builds 71 and 72 failing at the credhub install step with a mv error), explains the cause (the linux filter matched both amd64 and arm64 archives, and older images installed the tarball itself), and describes the fix (filter on linux-amd64, extract the archive, remove the tarball). This matches the Dockerfile change.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 01112e16-d2f5-444c-9504-26869cc87f79
Commits

Reviewing files that changed from the base of the PR and between d6e4264 and 0a2ac8c.

Files selected for processing: 1

  • ci/dockerfiles/deployment/Dockerfile

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

@aramprice
aramprice requested review from a team, KauzClay, julian-hj and ramonskie and removed request for a team November 19, 2026 01:26
@github-project-automation github-project-automation Bot moved this from Pending Review | Discussion to Pending Merge | Prioritized in Foundational Infrastructure Working Group Nov 19, 2026
@aramprice
aramprice merged commit bbaf002 into main Nov 19, 2026
8 checks passed
@aramprice
aramprice deleted the fix/credhub-deployment-image branch November 19, 2026 15:49
@github-project-automation github-project-automation Bot moved this from Pending Merge | Prioritized to Done in Foundational Infrastructure Working Group Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants