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

RH dockerfile update #2628

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

stevegrubb
Copy link
Contributor

This is a series of patches that update Dockerfile.redhat.

This is the first patch in a series that updates Dockerfile.redhat. This
first patch does the following:

1) Replace all yum commands to dnf commands
2) Discards installing yum-utils
3) Changes removing the yum cache to dnf clean all
4) No longer download cmake since 8.10's is newer
5) Use UBI 8's ccache instead of downloading and building one
6) Drop codeready-builder-for-rhel-8-x86_64-rpms since it's not in the image
7) Enable up to 8 parallel downloads
8) In the release image also add --nodocs to save size
Sometimes cudnn fails to download. This causes the transaction to fail,
however, yum/dnf both return 0. This means that the build continues until
it fails to build the cuda wheel which is much later in the build. With
this patch applied, it stops the build if everything did not download.
Add parallelism to building pugixml. Also group the license copy
with the other copies.
One of the files needs permissions adjusted.
The default points to master, but the current branch is main.
This points them to the right place by default.
In order to try to get installation of cudnn to be successful
add more retries. Also add these into the release image so that
cudnn does fail this late into the build.
Looks like it was removed betwen 2024.2 and current code.
Remove it to match the current design.
@stevegrubb
Copy link
Contributor Author

This patch set is complete and has been verified to build using podman.

Make sure the additions to the dnf.conf get expanded so they get
parsed correctly.
@stevegrubb
Copy link
Contributor Author

I think I need to start this over. Many changes were made to the docker file before this was reviewed. I'll leave it open for now. But I'll do this next time one patch at a time.

@stevegrubb
Copy link
Contributor Author

Put the conversion to dnf in PR #2693.

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.

2 participants