Skip to content

Commit 12c6b53

Browse files
committed
(Vagrantfile) add macos-sierra box
1 parent 5cf93a2 commit 12c6b53

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Vagrantfile

+25
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,31 @@ Vagrant.configure("2") do |config|
166166
SHELL
167167
end
168168

169+
config.vm.define "macos-sierra" do |i|
170+
i.vm.box = "gobadiah/macos-sierra"
171+
172+
i.vm.synced_folder ".", "/data/v8js", type: "nfs", mount_options:["resvport"]
173+
i.vm.network "private_network", ip: "192.168.50.3"
174+
175+
i.vm.provider "virtualbox" do |vb|
176+
vb.memory = "3000"
177+
178+
vb.customize ["modifyvm", :id, "--cpuidset", "1","000106e5","00100800","0098e3fd","bfebfbff"]
179+
vb.customize ["setextradata", :id, "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct", "iMac11,3"]
180+
vb.customize ["setextradata", :id, "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion", "1.0"]
181+
vb.customize ["setextradata", :id, "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct", "Iloveapple"]
182+
vb.customize ["setextradata", :id, "VBoxInternal/Devices/smc/0/Config/DeviceKey", "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"]
183+
vb.customize ["setextradata", :id, "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC", 1]
184+
end
185+
186+
i.vm.provision "shell", privileged: false, inline: <<-SHELL
187+
# install homebrew
188+
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
189+
brew install autoconf
190+
brew install homebrew/php/php71
191+
brew install v8
192+
SHELL
193+
end
169194

170195
config.vm.provision "shell", privileged: false, inline: <<-SHELL
171196
sudo mkdir -p /data/build && sudo chown $USER:$USER /data/build

0 commit comments

Comments
 (0)