Skip to content

Commit 42d042e

Browse files
committed
upgrade the base box to Ubuntu 18.04 [carloszan & fxn]
1 parent 00c84f2 commit 42d042e

File tree

3 files changed

+3
-14
lines changed

3 files changed

+3
-14
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ That's it.
2525
After the installation has finished, you can access the virtual machine with
2626

2727
host $ vagrant ssh
28-
Welcome to Ubuntu 17.10 (GNU/Linux 4.13.0-16-generic x86_64)
28+
Welcome to Ubuntu 18.04 LTS (GNU/Linux 4.15.0-20-generic x86_64)
2929
...
3030
vagrant@rails-dev-box:~$
3131

Vagrantfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
# -*- mode: ruby -*-
22
# vi: set ft=ruby :
33
Vagrant.configure('2') do |config|
4-
# FIXME: When upgrading to a future version of Ubuntu check if the workaround
5-
# near the top of bootstrap.sh is still needed. If not, please delete it.
6-
config.vm.box = 'ubuntu/artful64' # 17.10
4+
config.vm.box = 'ubuntu/bionic64' # 18.04
75
config.vm.hostname = 'rails-dev-box'
86

97
config.vm.network :forwarded_port, guest: 3000, host: 3000

bootstrap.sh

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,6 @@ function install {
77
apt-get -y install "$@" >/dev/null 2>&1
88
}
99

10-
# FIXME: This addresses an issue with Ubuntu 17.10 (Artful Aardvark). Should be
11-
# revisited when the base image gets upgraded.
12-
#
13-
# Workaround for https://bugs.launchpad.net/cloud-images/+bug/1726818 without
14-
# this the root file system size will be about 2GB.
15-
echo expanding root file system
16-
sudo resize2fs /dev/sda1
17-
1810
echo adding swap file
1911
fallocate -l 2G /swapfile
2012
chmod 600 /swapfile
@@ -32,9 +24,8 @@ install Ruby ruby2.5 ruby2.5-dev
3224
update-alternatives --set ruby /usr/bin/ruby2.5 >/dev/null 2>&1
3325
update-alternatives --set gem /usr/bin/gem2.5 >/dev/null 2>&1
3426

35-
# FIXME: Do not upgrade RubyGems, see https://github.com/rails/rails-dev-box/issues/147.
3627
# echo installing current RubyGems
37-
# gem update --system -N >/dev/null 2>&1
28+
gem update --system -N >/dev/null 2>&1
3829

3930
echo installing Bundler
4031
gem install bundler -N >/dev/null 2>&1

0 commit comments

Comments
 (0)