Clean docker images#1059
Conversation
igchor
left a comment
There was a problem hiding this comment.
Reviewed 11 of 15 files at r1.
Reviewable status: 11 of 15 files reviewed, all discussions resolved (waiting on @lukaszstolarczuk)
Codecov Report
@@ Coverage Diff @@
## master #1059 +/- ##
==========================================
+ Coverage 94.09% 94.13% +0.04%
==========================================
Files 48 48
Lines 4742 4742
==========================================
+ Hits 4462 4464 +2
+ Misses 280 278 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
KFilipek
left a comment
There was a problem hiding this comment.
Reviewed 4 of 15 files at r1.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @lukaszstolarczuk)
karczex
left a comment
There was a problem hiding this comment.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @lukaszstolarczuk)
utils/docker/images/Dockerfile.centos-8, line 94 at r1 (raw file):
${TESTS_DEPS} \ ${MISC_DEPS} \ && dnf clean all
As I can see, you update and clean dnf cache here and there little bit inconsistently, so you end up with bigger layers to download.
utils/docker/images/Dockerfile.debian-unstable, line 72 at r1 (raw file):
pkg-config \ sudo \ whois"
Why we need this pkg in container?
utils/docker/images/Dockerfile.opensuse-leap-latest, line 92 at r1 (raw file):
# Clean the package cache RUN zypper clean all
Cleaning in separate layer doesn't provide any benefit
and images' cleanups.
do all updates and packages installs in one RUN; and create user and password in one step as well.
because PMDK is installed from OS'es package repository.
ffa00a7 to
03ef46c
Compare
lukaszstolarczuk
left a comment
There was a problem hiding this comment.
Reviewable status: 9 of 16 files reviewed, 3 unresolved discussions (waiting on @igchor and @karczex)
utils/docker/images/Dockerfile.centos-8, line 94 at r1 (raw file):
Previously, karczex (Paweł Karczewski) wrote…
As I can see, you update and clean dnf cache here and there little bit inconsistently, so you end up with bigger layers to download.
it's not what I did, we have it for a long time, but good point.
utils/docker/images/Dockerfile.debian-unstable, line 72 at r1 (raw file):
Previously, karczex (Paweł Karczewski) wrote…
Why we need this pkg in container?
I believe it delivers 'mkpasswd' command (used for user creation)
utils/docker/images/Dockerfile.opensuse-leap-latest, line 92 at r1 (raw file):
Previously, karczex (Paweł Karczewski) wrote…
Cleaning in separate layer doesn't provide any benefit
Done.
karczex
left a comment
There was a problem hiding this comment.
Reviewable status: 9 of 16 files reviewed, all discussions resolved (waiting on @igchor)
It's a continuation of #1031
Preview with all OSes enabled:
https://github.com/lukaszstolarczuk/libpmemobj-cpp/actions/runs/662006158new preview: https://github.com/lukaszstolarczuk/libpmemobj-cpp/actions/runs/667687106
FYI, Fedora Rawhide is using PMDK and Valgrind installed using dnf.
This change is