diff --git a/.gitignore b/.gitignore index a5468e6..d5426a5 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ source_me.sh +*.deb diff --git a/Dockerfile b/Dockerfile index d225eed..17e30e8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -95,10 +95,10 @@ # this option cannot be used on newer driver # --no-glvnd-egl-client \ # --no-glvnd-glx-client \ +COPY cuda-repo-ubuntu1804-11-2-local_11.2.2-460.32.03-1_amd64.deb /tmp/cuda-repo-ubuntu1804-11-2-local_11.2.2-460.32.03-1_amd64.deb RUN cd /tmp && \ wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin && \ mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600 && \ - wget https://developer.download.nvidia.com/compute/cuda/11.2.2/local_installers/cuda-repo-ubuntu1804-11-2-local_11.2.2-460.32.03-1_amd64.deb && \ dpkg -i cuda-repo-ubuntu1804-11-2-local_11.2.2-460.32.03-1_amd64.deb && \ apt-key add /var/cuda-repo-ubuntu1804-11-2-local/7fa2af80.pub && \ apt-get update && apt-get install -y --no-install-recommends \ diff --git a/server.sh b/server.sh index b91ed40..021e832 100755 --- a/server.sh +++ b/server.sh @@ -1,4 +1,8 @@ #!/bin/bash +if [ ! -e ./cuda-repo-ubuntu1804-11-2-local_11.2.2-460.32.03-1_amd64.deb ]; then + wget https://developer.download.nvidia.com/compute/cuda/11.2.2/local_installers/cuda-repo-ubuntu1804-11-2-local_11.2.2-460.32.03-1_amd64.deb +fi + docker build -t sim . && \ # docker run --device=/dev/tty0:rw -it --rm --gpus all \ docker run --privileged -it --rm --gpus all \