-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
28 lines (22 loc) · 915 Bytes
/
Vagrantfile
File metadata and controls
28 lines (22 loc) · 915 Bytes
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
$script = <<-'SCRIPT'
sudo apt update
sudo apt install apt-transport-https curl gnupg-agent ca-certificates software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
sudo apt install containerd.io docker-buildx-plugin docker-ce docker-ce-cli docker-compose-plugin -y
sudo usermod -aG docker vagrant
git clone https://github.com/cachuperia/mwe-fastapi-debug.git
sudo reboot
SCRIPT
Vagrant.configure("2") do |config|
config.vm.define "focal64", primary: true do |c|
c.vm.box = "ubuntu/focal64"
config.vm.box_version = "20230619.0.0"
config.vm.network "private_network", ip: "192.168.56.5"
end
config.vm.provider "virtualbox" do |vb|
vb.memory = 2048
vb.cpus = 1
end
config.vm.provision "shell", privileged: false, inline: $script
end