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

Commit 9d33b6b

Browse files
committed
Tweak vagrant-scaleway configuration
1 parent 4636f17 commit 9d33b6b

5 files changed

Lines changed: 13 additions & 9 deletions

File tree

Rakefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---
2-
organisation: 'foofoofo-foof-foof-foof-foofoofoofoo'
2+
organization: 'foofoofo-foof-foof-foof-foofoofoofoo'
33
token: 'foofoofo-foof-foof-foof-foofoofoofoo'

release/aarch64-linux/Vagrantfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
require '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

release/arm-linux/.scaleway.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---
2-
organisation: 'foofoofo-foof-foof-foof-foofoofoofoo'
2+
organization: 'foofoofo-foof-foof-foof-foofoofoofoo'
33
token: 'foofoofo-foof-foof-foof-foofoofoofoo'

release/arm-linux/Vagrantfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
require '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

0 commit comments

Comments
 (0)