Skip to content

Restore configurable chaincode base image pull behavior - #5497

Merged
pfi79 merged 1 commit into
hyperledger:mainfrom
drupadh-dinesh:fix/cc-base-image-pull-config
Jun 16, 2026
Merged

Restore configurable chaincode base image pull behavior#5497
pfi79 merged 1 commit into
hyperledger:mainfrom
drupadh-dinesh:fix/cc-base-image-pull-config

Conversation

@drupadh-dinesh

Copy link
Copy Markdown
Contributor

Restore configurable chaincode base image pull behavior

  • Bug fix

Description

Prior to commit 138b6fa, pulling the chaincode base image was controlled by the chaincode.pull configuration option. After the Docker client update introduced in that commit, the base image pull behavior was effectively hardcoded to true, causing the base image to be pulled on every chaincode build regardless of the chaincode.pull setting.

This PR restores the previous behavior by honoring the chaincode.pull configuration option when deciding whether to pull the base image.

Additional details

This change is backward-compatible and restores the configurability that existed before commit 138b6fa.

@drupadh-dinesh
drupadh-dinesh requested a review from a team as a code owner June 15, 2026 19:28
@pfi79

pfi79 commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

please correct the unit test

Signed-off-by: Drupadh Dinesh <drupadhdinesh@gmail.com>
@drupadh-dinesh
drupadh-dinesh force-pushed the fix/cc-base-image-pull-config branch from 1f0b7d8 to 0fc37e1 Compare June 16, 2026 13:46
@pfi79

pfi79 commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

@drupadh-dinesh Thanks for your fix.

@pfi79
pfi79 enabled auto-merge (squash) June 16, 2026 13:48
@pfi79
pfi79 disabled auto-merge June 16, 2026 14:20
@pfi79
pfi79 merged commit f15473c into hyperledger:main Jun 16, 2026
15 checks passed
@pfi79

pfi79 commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

@Mergifyio backport release-2.5

@mergify

mergify Bot commented Jun 16, 2026

Copy link
Copy Markdown

backport release-2.5

✅ Backports have been created

Details

pfi79 pushed a commit that referenced this pull request Jun 16, 2026
(cherry picked from commit f15473c)

Signed-off-by: Drupadh Dinesh <drupadhdinesh@gmail.com>
Co-authored-by: Drupadh Dinesh <81158899+drupadh-dinesh@users.noreply.github.com>
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.

2 participants