forked from Lingjun-Zhou/Puppy_Image_Embeddings
-
Notifications
You must be signed in to change notification settings - Fork 0
/
provision.sh
executable file
·24 lines (19 loc) · 937 Bytes
/
provision.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Provision p2.xlarge on AWS.
docker-machine create --driver amazonec2 \
--amazonec2-region us-west-2 \
--amazonec2-zone b \
--amazonec2-ami ami-efd0428f \
--amazonec2-instance-type p2.xlarge \
--amazonec2-vpc-id FILL_IN_YOURS \
--amazonec2-access-key FILL_IN_YOURS \
--amazonec2-secret-key FILL_IN_YOURS \
--amazonec2-security-group FILL_IN_YOURS \
aws01
# Restart the instance first, to be sure we are running the latest installed kernel
docker-machine restart aws01
# Send our files over
docker-machine scp -r . aws01:/home/ubuntu
# Install official NVIDIA driver package
docker-machine ssh aws01 -- "sudo bash /home/ubuntu/utils/remote_setup.sh"
# Reboot to complete installation of the NVIDIA driver
docker-machine restart aws01