Skip to content

Commit 754d29d

Browse files
committed
(Vagrantfile) update to V8 7.5
1 parent 6ab1106 commit 754d29d

File tree

1 file changed

+2
-95
lines changed

1 file changed

+2
-95
lines changed

Vagrantfile

Lines changed: 2 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,13 @@
88
Vagrant.configure("2") do |config|
99
# Every Vagrant development environment requires a box. You can search for
1010
# boxes at https://atlas.hashicorp.com/search.
11-
config.vm.box = "ubuntu/xenial64"
12-
13-
config.vm.provider "lxc" do |lxc, override|
14-
lxc.backingstore = "none"
15-
override.vm.box = "zaikin/xenial64-lxc"
16-
end
11+
config.vm.box = "ubuntu/bionic64"
1712

1813

1914
#
2015
# mass-define "generic" Ubuntu boxes
2116
#
22-
%w{7.1}.each { |version|
17+
%w{7.5}.each { |version|
2318
config.vm.define "v8-#{version}" do |i|
2419
i.vm.synced_folder ".", "/data/v8js"
2520

@@ -82,94 +77,6 @@ Vagrant.configure("2") do |config|
8277
end
8378
}
8479

85-
86-
#
87-
# Fedora-based box with GCC7, V8 5.2 + PHP 7.1 installed
88-
# (primarily to reproduce #294)
89-
#
90-
config.vm.define "fedora-26-gcc7" do |i|
91-
i.vm.box = "vbenes/fedora-rawhide-server"
92-
i.ssh.insert_key = false
93-
94-
# unfortunately vboxsf isn't currently available (due to an issue with the base image)
95-
# therefore fall back to nfs
96-
i.vm.synced_folder ".", "/data/v8js", type: "nfs"
97-
i.vm.network "private_network", ip: "192.168.50.2"
98-
99-
i.vm.provision "shell", inline: <<-SHELL
100-
dnf -y update
101-
dnf -y install gcc-c++ gdb tmux git tig curl vim
102-
dnf -y install v8-devel php-devel
103-
SHELL
104-
end
105-
106-
107-
#
108-
# FreeBSD 11.0 box
109-
# (compiles V8 5.1.281.47 with Gyp; using port from https://raw.githubusercontent.com/Kronuz/Xapiand/master/contrib/freebsd/v8.shar)
110-
#
111-
config.vm.define "freebsd-11" do |i|
112-
i.vm.box = "freebsd/FreeBSD-11.0-RELEASE-p1"
113-
i.ssh.shell = "/bin/sh"
114-
115-
# vboxsf doesn't work on FreeBSD (yet), use nfs
116-
i.vm.synced_folder ".", "/data/v8js", type: "nfs"
117-
i.vm.network "private_network", type: "dhcp"
118-
119-
i.vm.provision "shell", inline: <<-SHELL
120-
pkg install -y git python bash gmake icu gdb tmux git tig curl vim autoconf php70
121-
122-
portsnap auto --interactive
123-
124-
mkdir -p /data && cd /data
125-
[ -x v8 ] || curl https://raw.githubusercontent.com/Kronuz/Xapiand/master/contrib/freebsd/v8.shar | sh
126-
127-
cd /data/v8
128-
make install
129-
SHELL
130-
end
131-
132-
133-
#
134-
# Fedora 25 box with 32-bit
135-
#
136-
config.vm.define "fedora25-32" do |i|
137-
i.vm.box = "wholebits/fedora25-32"
138-
i.vm.synced_folder ".", "/data/v8js"
139-
140-
i.vm.provision "shell", inline: <<-SHELL
141-
dnf -y update
142-
dnf -y install gcc-c++ gdb tmux git tig curl vim
143-
dnf -y install v8-devel php-devel
144-
SHELL
145-
end
146-
147-
config.vm.define "macos-sierra" do |i|
148-
i.vm.box = "gobadiah/macos-sierra"
149-
150-
i.vm.synced_folder ".", "/data/v8js", type: "nfs", mount_options:["resvport"]
151-
i.vm.network "private_network", ip: "192.168.50.3"
152-
153-
i.vm.provider "virtualbox" do |vb|
154-
vb.memory = "3000"
155-
156-
vb.customize ["modifyvm", :id, "--cpuidset", "1","000106e5","00100800","0098e3fd","bfebfbff"]
157-
vb.customize ["setextradata", :id, "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct", "iMac11,3"]
158-
vb.customize ["setextradata", :id, "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion", "1.0"]
159-
vb.customize ["setextradata", :id, "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct", "Iloveapple"]
160-
vb.customize ["setextradata", :id, "VBoxInternal/Devices/smc/0/Config/DeviceKey", "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"]
161-
vb.customize ["setextradata", :id, "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC", 1]
162-
end
163-
164-
i.vm.provision "shell", privileged: false, inline: <<-SHELL
165-
# install homebrew
166-
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
167-
brew install autoconf
168-
brew install homebrew/php/php71
169-
brew install v8
170-
SHELL
171-
end
172-
17380
config.vm.provision "shell", privileged: false, inline: <<-SHELL
17481
sudo mkdir -p /data/build && sudo chown $USER:$USER /data/build
17582
SHELL

0 commit comments

Comments
 (0)