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

HTTP download causes ocl-icd-2.2.12-1.el8.x86_64.rpm download to fail with Proxy while building on OpenShift #1803

Closed
Feelas opened this issue Mar 7, 2024 · 2 comments
Assignees

Comments

@Feelas
Copy link

Feelas commented Mar 7, 2024

Because ocl-icd-2.2.12-1.el8.x86_64.rpm is downloaded through an HTTP channel (here), the building process might fail on OpenShift if the cluster has http and https proxies configured.

BuildConfigs in OpenShift set HTTP_PROXY and HTTPS_PROXY environment values automatically, but not http_proxy.

Build process output suggests that rpm -ivh is using curl under the hood for the download. curl is notorious for using lowercase http_proxy when establishing an HTTP connection (in contrast to HTTPS where both uppercase and lowercase work).

The best way would be to download ocl-icd-2.2.12-1.el8.x86_64.rpm through an HTTPS channel (though it seems like mirror.centos.org doesn't allow HTTPS access).
As a workaround, it seems like adding http_proxy=${HTTP_PROXY} in front of the the command that does the installation of ocl-icd from http://mirror.centos.org would be enough to fix the problem, but there might be a better and cleaner solution.

@andrei-kochin
Copy link
Collaborator

@raymondlo84 looks like it's up to you

@eaidova
Copy link
Contributor

eaidova commented Apr 26, 2024

docker was updated to use different way and the latest GPU driver, so I believe this issue should be solved by this PR #1875

@eaidova eaidova closed this as completed Apr 26, 2024
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

No branches or pull requests

4 participants