Skip to content

Commit

Permalink
switch repo url for cross compile (#10)
Browse files Browse the repository at this point in the history
* switch repo url for cross compile

* Use cross compile so that cross compiling images works

* remove old install and add native repo

* move back to cross compile
  • Loading branch information
tabossert authored Nov 10, 2023
1 parent c24cec6 commit 46f29e7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions dockerfiles/base-images:rocky9.2-8
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ FROM rockylinux:9.2
RUN dnf -y update && \
dnf -y upgrade && \
dnf -y install poppler-utils xz-devel wget tar make which mailcap dnf-plugins-core compat-openssl11 && \
if [[ "$(uname -m)" == "aarch64" ]]; then dnf -y install cuda-11-8; fi && \
ARCH=$(uname -m) && if [[ "$ARCH" == "x86_64" ]] || [[ "$ARCH" == "amd64" ]]; then \
dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel9/x86_64/cuda-rhel9.repo; else \
dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel9/sbsa/cuda-rhel9.repo; fi && \
dnf -y install cuda-11-8 && \
dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel9/x86_64/cuda-rhel9.repo; dnf -y install cuda-11-8; else \
dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel9/cross-linux-sbsa/cuda-rhel9-cross-linux-sbsa.repo && dnf -y install cuda-cross-sbsa-11-8; fi && \
dnf -y install epel-release && \
# This is a fix for an bug where config-manager tries to modify a repo file with the incorrect name
cp /etc/yum.repos.d/rocky-devel.repo /etc/yum.repos.d/Rocky-Devel.repo && \
Expand Down

0 comments on commit 46f29e7

Please sign in to comment.