-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
47 lines (34 loc) · 1.37 KB
/
Vagrantfile
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# -*- mode: ruby -*-
# vi: set ft=ruby :
#####################################
# VAGRANT FILE FOR SPARK WORKSHOP VM
#####################################
Vagrant.configure(2) do |config|
#config.vm.provider "virtualbox" do |v|
# v.gui = true
#end
config.vm.define "spark-wkshp" do |master|
# if provisioning from a clean centos 6.6 box, uncomment the next two lines below and
# comment out the "rrrrrok/sis-spark-workshop" line
# master.vm.box = "rrrrrok/centos-6.6-VBGuest4.3.28"
# master.vm.provision "shell", path: "scripts/provision_pyspark.sh"
master.vm.box = "rrrrrok/sis-spark-workshop"
# enable X11 forwarding
master.ssh.forward_x11 = true
# enable SSH key forwarding
master.ssh.forward_agent = true
master.vm.hostname = "spark-wkshp"
master.vm.synced_folder "./notebooks", "/home/vagrant/notebooks"
# set up port forwarding
master.vm.network :forwarded_port, host: 8889, guest: 8889, auto_correct: true
master.vm.network :forwarded_port, host: 4040, guest: 4040, auto_correct: true
master.vm.usable_port_range = 4040..4090
# change the name of the VM
config.vm.provider "virtualbox" do |v|
v.name = master.vm.hostname.to_s
v.memory = 1024
v.cpus = 4
end
end
config.vm.post_up_message = "VM for Spark workshop is running -- login in with 'vagrant ssh' "
end