-
-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker: move nvidia to scrypted-common
- Loading branch information
Koushik Dutta
authored and
Koushik Dutta
committed
May 3, 2024
1 parent
1594364
commit edfdd5c
Showing
4 changed files
with
81 additions
and
55 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
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 |
---|---|---|
@@ -1,10 +1,6 @@ | ||
ARG BASE="ghcr.io/koush/scrypted" | ||
ARG BASE="ghcr.io/koush/scrypted-common:20-jammy-full" | ||
FROM $BASE | ||
ARG CUDA_VERSION=12-4 | ||
|
||
RUN apt update -q \ | ||
&& apt install wget \ | ||
&& wget -qO /cuda-keyring.deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb \ | ||
&& dpkg -i /cuda-keyring.deb \ | ||
&& apt update -q \ | ||
&& apt install -y cuda-nvcc-$CUDA_VERSION libcublas-$CUDA_VERSION libcudnn8 cuda-libraries-$CUDA_VERSION | ||
# nvidia cudnn/libcublas etc. | ||
# for some reason this is not provided by the nvidia container toolkit | ||
RUN curl https://raw.githubusercontent.com/koush/scrypted/main/install/docker/install-nvidia-graphics.sh | bash |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
if [ "$(uname -m)" = "x86_64" ] | ||
then | ||
export CUDA_VERSION=12-4 | ||
echo "Installing NVIDIA graphics packages." | ||
apt update -q \ | ||
&& apt install wget \ | ||
&& wget -qO /cuda-keyring.deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb \ | ||
&& dpkg -i /cuda-keyring.deb \ | ||
&& apt update -q \ | ||
&& apt install -y cuda-nvcc-$CUDA_VERSION libcublas-$CUDA_VERSION libcudnn8 cuda-libraries-$CUDA_VERSION; | ||
exit $? | ||
else | ||
echo "NVIDIA graphics will not be installed on this architecture." | ||
fi | ||
|
||
exit 0 |