@@ -166,6 +166,31 @@ Vagrant.configure("2") do |config|
166
166
SHELL
167
167
end
168
168
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
169
194
170
195
config . vm . provision "shell" , privileged : false , inline : <<-SHELL
171
196
sudo mkdir -p /data/build && sudo chown $USER:$USER /data/build
0 commit comments