Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoid unnecessary build context in 'make testprep' #68

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

jameslamb
Copy link
Member

make testprep builds some docker images to be used in this project's tests.

Those images don't need any local files (i.e. their Dockefiles don't contain COPY or ADD statements), so passing in the build context like docker build -f Dockerfile . is unnecessary.

This proposes instead switching them to no-context builds. That makes the builds slightly faster and their intention a bit clearer.

Notes for Reviewers

How I tested this

Ran the following.

make clean testprep

On main:

Sending build context to Docker daemon  770.6kB

On this branch:

Sending build context to Docker daemon  2.048kB

That's not a huge difference, but this change would protect against other files accidentally left lying around in the repo from also being added to that build context unnecessarily.

@jameslamb jameslamb added the CI Related to running tests and releasing label Aug 1, 2024
@jameslamb jameslamb requested a review from a team as a code owner August 1, 2024 15:52
Copy link
Member

@jacobtomlinson jacobtomlinson left a comment

Choose a reason for hiding this comment

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

Sure, can't hurt!

@jacobtomlinson jacobtomlinson merged commit ed10893 into NVIDIA:main Aug 1, 2024
7 checks passed
@jameslamb jameslamb deleted the no-context branch August 1, 2024 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Related to running tests and releasing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants