-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
34 lines (27 loc) · 956 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/jammy64"
config.vm.provider "virtualbox" do |vb|
vb.memory = "4096"
end
config.vm.network "forwarded_port", guest: 8888, host: 8888, host_ip: "127.0.0.1"
config.vm.provision "shell", name: "apt dependencies", inline: <<-SHELL
apt-get update
apt-get install -y pipx
SHELL
config.vm.provision "shell", name: "poetry", privileged: false, inline: <<-SHELL
pipx install poetry==$(cat /vagrant/.poetry-version)
SHELL
config.vm.provision "shell", name: "python dependencies", privileged: false, inline: <<-SHELL
set -e
cd /vagrant
poetry install
poetry run pre-commit install
echo "Running the CLI to verify everything works"
poetry run rls-data --help
SHELL
config.vm.provision "shell", name: "apt-upgrade", run: "always", inline: <<-SHELL
apt-get update && apt-get upgrade -y
SHELL
end