Skip to content

build: Trick buildkit into not reading .dockerignore#5416

Merged
nicks merged 1 commit intomasterfrom
nicks/ignore
Jan 28, 2022
Merged

build: Trick buildkit into not reading .dockerignore#5416
nicks merged 1 commit intomasterfrom
nicks/ignore

Conversation

@nicks
Copy link
Copy Markdown
Member

@nicks nicks commented Jan 27, 2022

Hello @landism,

Please review the following commits I made in branch nicks/ignore:

5b4dd90 (2022-01-27 17:54:10 -0500)
build: Trick buildkit into not reading .dockerignore
Fixes #5415

Code review reminders, by giving a LGTM you attest that:

  • Commits are adequately tested
  • Code is easy to understand and conforms to style guides
  • Incomplete code is marked with TODOs
  • Code is suitably instrumented with logging and metrics

@nicks nicks requested a review from landism January 27, 2022 22:58
@nicks
Copy link
Copy Markdown
Member Author

nicks commented Jan 27, 2022

v excited about the comment-to-code ratio in this PR tbh

Comment on lines +552 to +554
// server-side. There's a little dance Buildkit does to determine whether to
// grab my.Dockerfile.dockerignore from the dockerfile dir, or whether to grab
// .dockerignore from the context dir.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you have a link handy where you read about this dance (code or issue or whatever), that might be good to add here

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not off the top of my head, sorry! i think i might have gotten this from talking to the docker folks

@landism
Copy link
Copy Markdown
Member

landism commented Jan 28, 2022

v excited about the comment-to-code ratio in this PR tbh

Even with this warning, the comment exceeded expectations!

@nicks nicks merged commit ddae2f3 into master Jan 28, 2022
@nicks nicks deleted the nicks/ignore branch January 28, 2022 21:28
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.

Regression with multiple dockerignore files in 0.23.2 and above

2 participants