Last active
January 28, 2016 22:58
-
-
Save jezzarax/62e58be9d18aa5b4288f to your computer and use it in GitHub Desktop.
IPython-tensorflow Vagrantfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
$script = <<SCRIPT | |
sudo apt-get update | |
sudo apt-get install -y python-pip python-dev python-psycopg2 | |
sudo apt-get install -y build-essential python-dev | |
sudo apt-get install -y python-matplotlib | |
sudo apt-get install -y libssl1.0.0 | |
sudo pip install --upgrade ipython-sql jupyter | |
sudo pip install --upgrade jinja2 tornado jsonschema pyzmq | |
wget -nv https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.6.0-cp27-none-linux_x86_64.whl | |
sudo pip install --upgrade tensorflow-0.6.0-cp27-none-linux_x86_64.whl | |
nohup ipython notebook --ip=0.0.0.0 & | |
SCRIPT | |
Vagrant.configure(2) do |config| | |
config.vm.define "ipy" do |ipy| | |
ipy.vm.box = "debian/jessie64" | |
ipy.vm.provider "virtualbox" do |vb| | |
vb.gui = false | |
vb.memory = "4096" | |
end | |
ipy.vm.network "forwarded_port", guest: 8888, host: 8888 | |
ipy.vm.provision "shell", inline: $script | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment