Skip to content

Commit bad227d

Browse files
authored
chore: update vagrant file (#1026)
Signed-off-by: Richard Case <richard.case@outlook.com>
1 parent 189c8c6 commit bad227d

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

Vagrantfile

+17-5
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# limitations under the License.
1717

1818
Vagrant.configure("2") do |config|
19-
config.vm.box = "generic/ubuntu2004"
19+
config.vm.box = "bento/ubuntu-24.04"
2020

2121
config.ssh.forward_agent = true
2222
config.vm.synced_folder "./", "/home/vagrant/flintlock"
@@ -45,7 +45,8 @@ Vagrant.configure("2") do |config|
4545
sh.inline = <<~SHELL
4646
#!/usr/bin/env bash
4747
set -eux -o pipefail
48-
apt update && apt upgrade -y
48+
#apt update && apt upgrade -y
49+
apt update
4950
SHELL
5051
end
5152

@@ -58,13 +59,14 @@ Vagrant.configure("2") do |config|
5859
git \
5960
gcc \
6061
curl \
61-
unzip
62+
unzip \
63+
direnv
6264
SHELL
6365
end
6466

6567
config.vm.provision "install-golang", type: "shell", run: "once" do |sh|
6668
sh.env = {
67-
'GO_VERSION': ENV['GO_VERSION'] || "1.17.2",
69+
'GO_VERSION': ENV['GO_VERSION'] || "1.23.1",
6870
}
6971
sh.inline = <<~SHELL
7072
#!/usr/bin/env bash
@@ -90,7 +92,17 @@ EOF
9092
apt install -y qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils
9193
adduser 'vagrant' libvirt
9294
adduser 'vagrant' kvm
93-
setfacl -m u:${USER}:rw /dev/kvm
95+
#setfacl -m u:${USER}:rw /dev/kvm
96+
SHELL
97+
end
98+
99+
config.vm.provision "install-devbox", type: "shell", run: "once" do |sh|
100+
sh.inline = <<~SHELL
101+
#!/usr/bin/env bash
102+
set -eux -o pipefail
103+
sh <(curl -L https://nixos.org/nix/install) --daemon
104+
curl -L -o devbox https://releases.jetify.com/devbox
105+
mv ./devbox /usr/local/bin
94106
SHELL
95107
end
96108
end

0 commit comments

Comments
 (0)