demo/terraform: fix nvidia drivers installation

This commit is contained in:
Jason Paul Deland 2022-05-31 20:17:55 -04:00 committed by GitHub
parent 2b184ef27f
commit a6ddee8743
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ if [[ ! -z ${INSTALL_NVIDIA_DOCKER+x} ]]; then
# This is why we added gnupg-curl, otherwise, the following fails with "gpgkeys: protocol `https' not supported"
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/3bf863cc.pub
sudo sh -c 'echo "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 /" > /etc/apt/sources.list.d/cuda.list'
sudo apt-get update && sudo apt-get install -y --no-install-recommends linux-headers-generic dkms cuda-drivers
sudo apt-get update && sudo apt-get install -y --no-install-recommends --allow-unauthenticated linux-headers-generic dkms cuda-drivers
# Install nvidia-docker and nvidia-docker-plugin
# from: https://github.com/NVIDIA/nvidia-docker#ubuntu-140416041804-debian-jessiestretch
@ -126,7 +126,7 @@ if [[ ! -z ${INSTALL_NVIDIA_DOCKER+x} ]]; then
sudo tee /etc/apt/sources.list.d/nvidia-docker.list
sudo apt-get update
sudo apt-get install -y nvidia-docker2
sudo apt-get install -y --allow-unauthenticated nvidia-docker2
fi
# rkt