-
Notifications
You must be signed in to change notification settings - Fork 211
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
Use dnf in dockerfile.redhat #2705
Conversation
There is a mix of dnf and yum being used throughout the Dockerfile. This switches it over to only use dnf. As a result, yum-utils is not needed. This also adds more parallelism in downloads and more retries. The nvidia repo sometimes breaks connections. Hopefully the extra retries lets us be successful in setting up the build environment.
if [ "$INSTALL_RPMS_FROM_URL" == "" ] ; then \ | ||
rpm -ivh http://vault.centos.org/centos/8-stream/AppStream/x86_64/os/Packages/ocl-icd-2.2.12-1.el8.x86_64.rpm; \ | ||
else \ | ||
$DNF_TOOL install -y tar gzip; \ | ||
mkdir /tmp_ovms ; \ | ||
cd /tmp_ovms ; \ | ||
curl -L --fail -o deps.tar.xz "$INSTALL_RPMS_FROM_URL" ; \ | ||
tar -xf deps.tar.xz ; \ | ||
ls -Rahl . ; \ | ||
rpm -vi pkg/bin/*.rpm ; \ | ||
cd / ; \ | ||
rm -rf /tmp_ovms ; \ | ||
$DNF_TOOL remove -y tar gzip; \ | ||
fi ; \ |
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.
Don't we need this part anymore?
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.
no, we don't
mkdir -p /ovms/lib/openvino-4.dist-info && \ | ||
echo $'Metadata-Version: 1.0\nName: openvino\nVersion: 2024.4' > /ovms/lib/openvino-2024.4.dist-info/METADATA ; \ |
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.
Why do you remove these lines? I suppose we will loose capability of using openvino package in Python nodes if dist info is not created.
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.
we are setting it in https://github.com/openvinotoolkit/model_server/blob/main/Dockerfile.redhat#L305
This folder is not used
🛠 Summary
🧪 Checklist
``