-
Notifications
You must be signed in to change notification settings - Fork 100
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 installing weak dependencies #846
Conversation
d583813
to
78024d7
Compare
The following weak dependencies will end up not being installed. ``` apr-util-bdb apr-util-openssl geolite2-city geolite2-country libmaxminddb perl-Digest perl-Digest-MD5 perl-IO-Socket-IP perl-IO-Socket-SSL perl-libnet perl-Mozilla-CA perl-Net-SSLeay perl-URI python38-pip python3-jmespath rubygem-bundler rubygem-json rubygem-rdoc ``` This drops the image size roughly from 2.063GB to 1.943GB (120MB, 5.85%). Of note, the geolite2 packages are somewhat large, so part of ManageIQ#736
Checked commit Fryguy@2590c5e with ruby 2.6.9, rubocop 1.19.1, haml-lint 0.35.0, and yamllint |
@@ -45,7 +45,7 @@ COPY container-assets/clean_dnf_rpm /usr/local/bin/ | |||
|
|||
RUN curl -L https://releases.ansible.com/ansible-runner/ansible-runner.el8.repo > /etc/yum.repos.d/ansible-runner.repo | |||
|
|||
RUN dnf -y --disableplugin=subscription-manager --setopt=tsflags=nodocs install \ | |||
RUN dnf -y --disableplugin=subscription-manager --setopt=tsflags=nodocs --setopt=install_weak_deps=False install \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RUN dnf -y --disableplugin=subscription-manager --setopt=tsflags=nodocs --setopt=install_weak_deps=False install \ | |
RUN dnf config-manager --setopt=tsflags=nodocs --setopt=install_weak_deps=False --save && \ | |
dnf -y --disableplugin=subscription-manager install \ |
Then we can drop those settings from all following commands.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if we want to put subscription-manager in there too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was gonna ask if you wanted to do that - do we want that for this PR or a followup ?
I was thinking of doing that as a followup and in the base image right at the beginning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if we want to put subscription-manager in there too
Unfortunately, we still need subscription-manager for the s390x builds.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, #847
Similar change to ManageIQ/manageiq-pods#846
Depends on
The following weak dependencies will end up not being installed.
This drops the image size roughly from 2.063GB to 1.943GB (120MB, 5.85%). Of note, the geolite2 packages are somewhat large, so part of #736
Packages sizes sorted by size: