-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.sh
31 lines (22 loc) · 1002 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
set -ex
export DEBIAN_FRONTEND=noninteractive
# Point to docker repository
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 \
--recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo deb https://apt.dockerproject.org/repo ubuntu-xenial main > /tmp/docker.list
sudo cp /tmp/docker.list /etc/apt/sources.list.d/docker.list
# NVIDIA repository
sudo add-apt-repository -y ppa:graphics-drivers/ppa
sudo apt-get update
# Install NVIDIA drivers and docker
sudo apt-get install -y -f docker-engine='1.12.0-0~xenial' \
ubuntu-drivers-common nvidia-375 nvidia-modprobe
sudo apt-get install -y emacs24-nox
# Get the nvidia-docker package and install it
relurl=https://github.com/NVIDIA/nvidia-docker/releases/download
dlurl=${relurl}/v1.0.0-rc.3/nvidia-docker_1.0.0.rc.3-1_amd64.deb
wget -P /tmp $dlurl
sudo dpkg -i /tmp/nvidia-docker*.deb
# Load the drivers. Happens automatically on reboot, but not on install
sudo nvidia-modprobe -u -c=0
sudo docker build -t tfintro .