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

Use dnf in dockerfile.redhat #2705

Merged
merged 11 commits into from
Sep 27, 2024
Merged

Use dnf in dockerfile.redhat #2705

merged 11 commits into from
Sep 27, 2024

Conversation

dtrawins
Copy link
Collaborator

🛠 Summary

🧪 Checklist

  • Unit tests added.
  • The documentation updated.
  • Change follows security best practices.
    ``

stevegrubb and others added 7 commits September 17, 2024 17:00
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.
@dtrawins dtrawins marked this pull request as ready for review September 24, 2024 07:32
Comment on lines -429 to -442
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 ; \
Copy link
Collaborator

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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, we don't

Comment on lines -446 to -447
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 ; \
Copy link
Collaborator

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dtrawins dtrawins merged commit 5177132 into main Sep 27, 2024
9 checks passed
@dtrawins dtrawins deleted the use-dnf branch October 29, 2024 14:25
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

Successfully merging this pull request may close these issues.

4 participants