The scripts in this repository are used to run Jupyter notebook with NVIDIA Docker on AWS.
These scripts are based on a post (in Japanese).
- ubuntu/images/hvm-ssd/ubuntu-trusty-14.04-amd64-server-20161213
- g2.2xlarge (also work on g2.8xlarge but I did not test)
This step is required for installing NVIDIA driver.
$ ssh -i "public_key.pem" [email protected] 'bash -s' < disable_nouveau.sh
When this script is finised, the remote machine will restart.
$ ssh -i "public_key.pem" [email protected] 'bash -s' < install_nvidia_driver.sh
$ ssh -i "public_key.pem" [email protected] 'bash -s' < install_docker.sh
$ ssh -i "public_key.pem" [email protected] 'bash -s' < install_nvidia_docker.sh
$ scp -r -i "public_key.pem" docker [email protected]:~/
$ ssh -i "public_key.pem" [email protected] 'cd docker; chmod 755 *.sh'
$ ssh -i "public_key.pem" [email protected] 'bash -s' < build_docker_image.sh
$ ssh -i "public_key.pem" [email protected]
# On remote
$ cd docker
$ ./run_docker_container.sh