-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
feat(.dockerignore): revise .dockerignore
to correctly ignore copying unrelated files
#5009
Conversation
Signed-off-by: Yutaka Kondo <[email protected]>
Signed-off-by: Yutaka Kondo <[email protected]>
.dockerignore
to correctly ignore copying unrelated src
files.dockerignore
to correctly ignore copying unrelated files
The list of extensions to ignore was selected for larger sizes using the following one-liner.
|
Signed-off-by: Yutaka Kondo <[email protected]>
Signed-off-by: Yutaka Kondo <[email protected]>
efb731c
to
a4bca27
Compare
Looking good @youtalk, but the caching needs to be tested after this merged. Thanks ! |
.dockerignore
to correctly ignore copying unrelated files.dockerignore
to correctly ignore copying unrelated files
The first time of the The @oguzkaganozt It's time to review please. |
@xmfcx Please review this too. The |
Shouldn't it actually build it? And non-cuda version is still building https://github.com/autowarefoundation/autoware/actions/runs/9998715168/job/27638240136?pr=5009 |
The layer cache of the However, since this PR, This behavior is intentional for me, as stated in the PR description.
|
But how can no-cuda job run again while cuda job is cached? Same hashes should affect both of them. Maybe it was cached here: https://github.com/autowarefoundation/autoware/actions/runs/9998728294/job/27638271926 Anyway, let's merge and see, thank you! |
@xmfcx The build cache is different between |
Description
var-lib-apt
cache #5004This is the first countermeasure raised in the dicussion https://github.com/orgs/autowarefoundation/discussions/5007.
I found that the current
.dockerignore
does not properly ignore the copying of unrelated files at all. Therefore, this PR revises the.dockerignore
to prevent unnecessary files undersrc
from being copied into the container image.As a result, the compressed image size of devel has been reduced by 1.5GB. The most effective one is
.git
.In addition, since
.dockerignore
has been properly configured, I believe that executing theCOPY
command will allow the layer cache to function correctly.Tests performed
Before revising the
.dockerignore
:After revising the
.dockerignore
:Effects on system behavior
Not applicable.
Interface changes
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.
In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.