Created
June 28, 2015 18:42
-
-
Save bepcyc/be72550da3ab0b504918 to your computer and use it in GitHub Desktop.
edX CS 100.1X. Vagrant on steroids.
This file contains hidden or 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 : | |
| ipythonPort = 8001 # Ipython port to forward (also set in IPython notebook config) | |
| Vagrant.configure(2) do |config| | |
| config.ssh.insert_key = true | |
| config.vm.define "sparkvm" do |master| | |
| master.vm.box = "sparkmooc/base" | |
| master.vm.box_download_insecure = true | |
| master.vm.boot_timeout = 900 | |
| master.vm.network :forwarded_port, host: ipythonPort, guest: ipythonPort, auto_correct: true # IPython port (set in notebook config) | |
| master.vm.network :forwarded_port, host: 4040, guest: 4040, auto_correct: true # Spark UI (Driver) | |
| master.vm.hostname = "sparkvm" | |
| master.vm.usable_port_range = 4040..4090 | |
| master.vm.provider :virtualbox do |v| | |
| v.name = master.vm.hostname.to_s | |
| # without I/O APIC enabled, nothing works | |
| v.customize ["modifyvm", :id, "--ioapic", "on"] | |
| # 8 cores | |
| v.customize ["modifyvm", :id, "--cpus", 8] | |
| # 6 GB of ram | |
| v.customize ["modifyvm", :id, "--memory", 6144] | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment