Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
Use larger disk so that downstream guests have breathing room
Browse files Browse the repository at this point in the history
  • Loading branch information
acj committed Nov 21, 2021
1 parent 03464f5 commit 8c6f059
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ jobs:
${{ matrix.box }}-vagrant-
- uses: actions/checkout@v2
- name: Set up VM
run: vagrant up ${{ matrix.box }}
run: |
vagrant plugin install vagrant-disksize
vagrant up ${{ matrix.box }}
- name: Package box
run: |
vagrant package ${{ matrix.box }} --output ${{ matrix.box }}.box
Expand Down
8 changes: 7 additions & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
Vagrant.configure("2") do |config|
config.vm.define "fbsd_13_0" do |fbsd_13_0|
fbsd_13_0.vm.box = "freebsd/FreeBSD-13.0-RELEASE"
config.disksize.size = "16GB"
end

config.vm.define "fbsd_12_2" do |fbsd_12_2|
fbsd_12_2.vm.box = "freebsd/FreeBSD-12.2-STABLE"
config.disksize.size = "16GB"
end

config.vm.provision "shell", inline: <<~SHELL
growfs -y /
pkg bootstrap
pkg update
pkg install -y curl bash git gmake llvm
pkg clean -ay
rm -rf /usr/ports /usr/share/doc
Expand All @@ -19,10 +24,11 @@ Vagrant.configure("2") do |config|
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bash_profile
echo '~/.rbenv/bin/rbenv init' >> ~/.bash_profile
echo 'eval "$(rbenv init - bash)"' >> ~/.bash_profile
env MAKEFLAGS="-j2" ~/.rbenv/bin/rbenv install 2.7.4
env MAKEFLAGS="-j2" ~/.rbenv/bin/rbenv install 3.0.2
~/.rbenv/bin/rbenv rehash
~/.rbenv/bin/rbenv global 3.0.2
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain 1.56.0
Expand Down

0 comments on commit 8c6f059

Please sign in to comment.