This repository was archived by the owner on Dec 4, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,9 +71,12 @@ namespace :build do
7171 sh "vagrant ssh -c 'git clone /libv8/.git ~/libv8 --recursive'"
7272 sh "vagrant ssh -c 'cd ~/libv8 && bundle install --path vendor/bundle'"
7373 sh "vagrant ssh -c 'cd ~/libv8 && env MAKEFLAGS=-j4 bundle exec rake binary'"
74- sh "vagrant ssh -c 'cp ~/libv8/pkg/*.gem /vagrant'"
75- sh ( "vagrant status | grep scaleway" ) do |ok , res |
76- sh "vagrant ssh --no-tty -c 'cd ~/libv8/pkg && tar -cf - *.gem' 2>/dev/null | tar -xv"
74+ sh "vagrant status | grep scaleway" do |ok , res |
75+ if ok
76+ sh "vagrant ssh --no-tty -c 'cd ~/libv8/pkg && tar -cf - *.gem' 2>/dev/null | tar -xv"
77+ else
78+ sh "vagrant ssh -c 'cp ~/libv8/pkg/*.gem /vagrant'"
79+ end
7780 end
7881 sh "vagrant destroy -f"
7982 end
Original file line number Diff line number Diff line change 11---
2- organisation : 'foofoofo-foof-foof-foof-foofoofoofoo'
2+ organization : 'foofoofo-foof-foof-foof-foofoofoofoo'
33token: 'foofoofo-foof-foof-foof-foofoofoofoo'
Original file line number Diff line number Diff line change 33
44require 'yaml'
55
6- SETTINGS = YAML . load_file ( File . join ( File . dirname ( __FILE__ ) , '.scaleway' ) )
6+ SETTINGS = YAML . load_file ( File . join ( Dir . home , '.scaleway' ) )
77
88# All Vagrant configuration is done below. The "2" in Vagrant.configure
99# configures the configuration version (we support older styles for
@@ -36,8 +36,9 @@ Vagrant.configure("2") do |config|
3636
3737 config . vm . provision "shell" , inline : <<-SHELL
3838 apt-get update
39+ apt-get purge -y unattended-upgrades
3940 apt-get install -y software-properties-common
40- apt-get dist-upgrade -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold"
41+ apt-get dist-upgrade -y
4142 apt-get install -y build-essential git ruby ruby-dev
4243 gem install bundler
4344 useradd -m -s /bin/bash vagrant
Original file line number Diff line number Diff line change 11---
2- organisation : 'foofoofo-foof-foof-foof-foofoofoofoo'
2+ organization : 'foofoofo-foof-foof-foof-foofoofoofoo'
33token: 'foofoofo-foof-foof-foof-foofoofoofoo'
Original file line number Diff line number Diff line change 33
44require 'yaml'
55
6- SETTINGS = YAML . load_file ( File . join ( File . dirname ( __FILE__ ) , '.scaleway' ) )
6+ SETTINGS = YAML . load_file ( File . join ( Dir . home , '.scaleway' ) )
77
88# All Vagrant configuration is done below. The "2" in Vagrant.configure
99# configures the configuration version (we support older styles for
@@ -37,7 +37,7 @@ Vagrant.configure("2") do |config|
3737 config . vm . provision "shell" , inline : <<-SHELL
3838 apt-get update
3939 apt-get install -y software-properties-common
40- apt-get dist-upgrade -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold"
40+ apt-get dist-upgrade -y
4141 apt-get install -y build-essential git ruby ruby-dev
4242 gem install bundler
4343 useradd -m -s /bin/bash vagrant
You can’t perform that action at this time.
0 commit comments