mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-18 00:47:48 +08:00
22 lines
602 B
Ruby
22 lines
602 B
Ruby
# -*- mode: ruby -*-
|
|
# vi: set ft=ruby :
|
|
|
|
Vagrant.configure("2") do |config|
|
|
config.vm.box = "generic/freebsd14"
|
|
config.vm.boot_timeout = 900
|
|
config.vm.synced_folder ".", "/vagrant", type: "rsync"
|
|
config.ssh.keep_alive = true
|
|
|
|
config.vm.provision "init", type: "shell", run: "once" do |sh|
|
|
sh.inline = <<~SHELL
|
|
set -x
|
|
pkg bootstrap
|
|
pkg install -y git
|
|
|
|
fetch https://go.dev/dl/go#{ENV['GO_VERSION']}.freebsd-amd64.tar.gz
|
|
tar -C /usr/local -xzf go#{ENV['GO_VERSION']}.freebsd-amd64.tar.gz
|
|
ln -s /usr/local/go/bin/go /usr/local/bin/go
|
|
SHELL
|
|
end
|
|
end
|