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

Do not mark base image files as inefficient files even it was installed through any dep #454

Open
vkosuri opened this issue Jun 6, 2023 · 0 comments

Comments

@vkosuri
Copy link

vkosuri commented Jun 6, 2023

Hi,

I use dive_0.9.2_linux_amd64.deb on Ubuntu 22, My container already had the Perl package and its modules.

One of my docker RUN commands installs Perl packages as dependencies due to this Perl marking as inefficient Files,

Could you please let me know how to overcome this?

kosuri@kosuri ~/git/test
❯ CI=true dive debug-test:v7.106.0-dev
  Using default CI config
Image Source: docker://debug-test:v7.106.0-dev
Fetching image... (this can take a while for large images)
Analyzing image...
  efficiency: 97.1840 %
  wastedBytes: 16075324 bytes (16 MB)
  userWastedPercent: 8.3853 %
Inefficient Files:
Count  Wasted Space  File Path
    2        7.6 MB  /usr/bin/perl
    2        1.3 MB  /usr/lib/x86_64-linux-gnu/perl-base/auto/re/re.so
    2        801 kB  /usr/lib/x86_64-linux-gnu/perl-base/unicore/To/NFKCCF.pl
    2        614 kB  /var/log/lastlog
    2        258 kB  /var/lib/dpkg/status
    2        221 kB  /usr/lib/x86_64-linux-gnu/perl-base/auto/POSIX/POSIX.so
    2        219 kB  /usr/share/doc/perl-base/copyright
    2        170 kB  /usr/lib/x86_64-linux-gnu/perl-base/File/Temp.pm


Results:
  PASS: highestUserWastedPercent
  SKIP: highestWastedBytes: rule disabled
  PASS: lowestEfficiency
Result:PASS [Total:3] [Passed:2] [Failed:0] [Warn:0] [Skipped:1]
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

No branches or pull requests

1 participant