0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-12-23 01:51:51 +00:00

(Vagrantfile) add FreeBSD 11.0 box

This commit is contained in:
Stefan Siegl 2017-03-12 00:46:25 +01:00
parent 767118e7d9
commit 417ae46943

31
Vagrantfile vendored
View File

@ -58,7 +58,34 @@ Vagrant.configure("2") do |config|
SHELL SHELL
end end
config.vm.provision "shell", inline: <<-SHELL
mkdir -p /data/build && chown vagrant. /data/build #
# FreeBSD 11.0 box
# (compiles V8 5.1.281.47 with Gyp; using port from https://raw.githubusercontent.com/Kronuz/Xapiand/master/contrib/freebsd/v8.shar)
#
config.vm.define "freebsd-11" do |i|
i.vm.box = "freebsd/FreeBSD-11.0-RELEASE-p1"
i.ssh.shell = "/bin/sh"
# vboxsf doesn't work on FreeBSD (yet), use nfs
i.vm.synced_folder ".", "/data/v8js", type: "nfs"
i.vm.network "private_network", type: "dhcp"
i.vm.provision "shell", inline: <<-SHELL
pkg install -y git python bash gmake icu gdb tmux git tig curl vim autoconf php70
portsnap auto --interactive
mkdir -p /data && cd /data
[ -x v8 ] || curl https://raw.githubusercontent.com/Kronuz/Xapiand/master/contrib/freebsd/v8.shar | sh
cd /data/v8
make install
SHELL
end
config.vm.provision "shell", inline: <<-SHELL
mkdir -p /data/build && chown vagrant:vagrant /data/build
SHELL SHELL
end end