Skip to content

build: fix missing proxy build args for classic builder#10876

Closed
milas wants to merge 1 commit into
docker:v2from
milas:classic-build-args
Closed

build: fix missing proxy build args for classic builder#10876
milas wants to merge 1 commit into
docker:v2from
milas:classic-build-args

Conversation

@milas

@milas milas commented Aug 3, 2023

Copy link
Copy Markdown
Contributor

What I did
Refactor to use a consistent code path for determining the build args for a service image regardless of whether BuildKit or the classic builder is being used.

After recent changes, these code paths had diverged, so the classic builder was missing the proxy variables from the Docker client config.

Related issue

(not mandatory) A picture of a cute animal, if possible in relation to what you did
a very cute weasel on a tree branch looking at the camera

@milas milas added the kind/bug label Aug 3, 2023
@milas
milas requested a review from a team August 3, 2023 18:45
@milas milas self-assigned this Aug 3, 2023
@milas
milas requested review from StefanScherer, glours, laurazard, ndeloof, nicksieger and ulyssessouza and removed request for a team August 3, 2023 18:45
Refactor to use a consistent code path for determining the build
args for a service image regardless of whether BuildKit or the
classic builder is being used.

After recent changes, these code paths had diverged, so the classic
builder was missing the proxy variables from the Docker client
config.

Signed-off-by: Milas Bowman <[email protected]>
@milas
milas force-pushed the classic-build-args branch from 3d88aa0 to 92111f5 Compare August 3, 2023 18:51
@codecov

codecov Bot commented Aug 3, 2023

Copy link
Copy Markdown

Codecov Report

Patch coverage: 82.60% and project coverage change: +0.05% 🎉

Comparison is base (8a1bf5d) 58.30% compared to head (92111f5) 58.36%.
Report is 5 commits behind head on v2.

Additional details and impacted files
@@            Coverage Diff             @@
##               v2   #10876      +/-   ##
==========================================
+ Coverage   58.30%   58.36%   +0.05%     
==========================================
  Files         119      119              
  Lines       10331    10323       -8     
==========================================
+ Hits         6024     6025       +1     
+ Misses       3710     3701       -9     
  Partials      597      597              
Files Changed Coverage Δ
pkg/compose/build.go 74.43% <76.47%> (-0.57%) ⬇️
pkg/compose/build_classic.go 52.86% <100.00%> (+0.30%) ⬆️

... and 4 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@milas
milas enabled auto-merge (squash) August 4, 2023 21:05
@milas milas closed this Aug 8, 2023
auto-merge was automatically disabled August 8, 2023 19:26

Pull request was closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants