Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Commit 09b57cc

Browse files
committed
Fix binary releases through Vagrant
1 parent 57b58f1 commit 09b57cc

4 files changed

Lines changed: 11 additions & 8 deletions

File tree

Rakefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,10 @@ namespace :build do
5858
Dir.chdir(arch_dir) do
5959
ENV['RUBYLIB'] = nil # https://github.com/mitchellh/vagrant/issues/6158
6060
sh "vagrant up"
61-
sh "vagrant ssh -c 'git clone /libv8/.git ~/libv8'"
61+
sh "vagrant ssh -c 'rm -rf ~/libv8'"
62+
sh "vagrant ssh -c 'git clone /libv8/.git ~/libv8 --recursive'"
6263
sh "vagrant ssh -c 'cd ~/libv8 && bundle install --path vendor/bundle'"
63-
sh "vagrant ssh -c 'cd ~/libv8 && bundle exec rake checkout binary'"
64+
sh "vagrant ssh -c 'cd ~/libv8 && bundle exec rake binary'"
6465
sh "vagrant ssh -c 'cp ~/libv8/pkg/*.gem /vagrant'"
6566
end
6667
end

release/x86-linux/Vagrantfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,19 @@ Vagrant.configure(2) do |config|
5454
#
5555
# View the documentation for the provider you are using for more
5656
# information on available options.
57+
config.vm.provider :virtualbox do |vb|
58+
vb.memory = "2048"
59+
vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
60+
vb.customize ["modifyvm", :id, "--audio", "none"]
61+
vb.customize ["modifyvm", :id, "--nictype1", "virtio"]
62+
end
5763

5864
# Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
5965
# such as FTP and Heroku are also available. See the documentation at
6066
# https://docs.vagrantup.com/v2/push/atlas.html for more information.
6167
# config.push.define "atlas" do |push|
6268
# push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
6369
# end
64-
config.vm.provider :virtualbox do |vb|
65-
vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
66-
vb.customize ["modifyvm", :id, "--audio", "none"]
67-
vb.customize ["modifyvm", :id, "--nictype1", "virtio"]
68-
end
6970

7071
# Enable provisioning with a shell script. Additional provisioners such as
7172
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the

release/x86_64-freebsd10/Vagrantfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,6 @@ Vagrant.configure(2) do |config|
8181
# sudo apt-get install -y apache2
8282
# SHELL
8383
config.vm.provision "shell", inline: <<-SHELL
84-
pkg install -y gmake ruby rubygem-bundler git-subversion python2
84+
pkg install -y bash gmake ruby rubygem-bundler git-subversion python2
8585
SHELL
8686
end

release/x86_64-linux/Vagrantfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ Vagrant.configure(2) do |config|
5555
# View the documentation for the provider you are using for more
5656
# information on available options.
5757
config.vm.provider :virtualbox do |vb|
58+
vb.memory = "2048"
5859
vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
5960
vb.customize ["modifyvm", :id, "--audio", "none"]
6061
vb.customize ["modifyvm", :id, "--nictype1", "virtio"]

0 commit comments

Comments
 (0)