Debian Codegraph @

hack/Vagrantfile.freebsd

raw
1 # -*- mode: ruby -*-
2 # vi: set ft=ruby :
3
4 Vagrant.configure("2") do |config|
5 config.vm.box = "generic/freebsd14"
6 config.vm.boot_timeout = 900
7 config.vm.synced_folder ".", "/vagrant", type: "rsync"
8 config.ssh.keep_alive = true
9
10 config.vm.provision "init", type: "shell", run: "once" do |sh|
11 sh.inline = <<~SHELL
12 set -ex
13 freebsd-version -kru
14 # switching to "release_2" ensures compatibility with the current Vagrant box
15 sed -i '' 's/latest/release_2/' /usr/local/etc/pkg/repos/FreeBSD.conf
16 pkg bootstrap
17 fetch https://go.dev/dl/go#{ENV['GO_VERSION']}.freebsd-amd64.tar.gz
18 tar -C /usr/local -xzf go#{ENV['GO_VERSION']}.freebsd-amd64.tar.gz
19 ln -s /usr/local/go/bin/go /usr/local/bin/go
20 SHELL
21 end
22 end