-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop all NVHPC before 24.5
- Loading branch information
Showing
2 changed files
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,20 @@ ARG REPOSITORY | |
FROM ${REPOSITORY}:base | ||
LABEL maintainer="Felix Thaler <[email protected]>" | ||
|
||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
gnupg2 curl ca-certificates && \ | ||
curl https://developer.download.nvidia.com/hpc-sdk/ubuntu/DEB-GPG-KEY-NVIDIA-HPC-SDK | gpg --dearmor -o /usr/share/keyrings/nvidia-hpcsdk-archive-keyring.gpg && \ | ||
apt-get purge --autoremove -y curl \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
|
||
ARG NVHPC_VERSION | ||
ENV NVHPC_VERSION ${NVHPC_VERSION} | ||
|
||
RUN NVHPC_VERSION_DASH=$(echo ${NVHPC_VERSION} | sed 's/\./-/g') && \ | ||
echo 'deb [trusted=yes] https://developer.download.nvidia.com/hpc-sdk/ubuntu/amd64 /' > /etc/apt/sources.list.d/nvhpc.list && \ | ||
apt-get update -qq && \ | ||
echo 'deb [signed-by=/usr/share/keyrings/nvidia-hpcsdk-archive-keyring.gpg] https://developer.download.nvidia.com/hpc-sdk/ubuntu/amd64 /' > /etc/apt/sources.list.d/nvhpc.list && \ | ||
apt-get update -qq -y && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get install -qq -y nvhpc-${NVHPC_VERSION_DASH} && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
|