-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVagrantfile
36 lines (31 loc) · 1.01 KB
/
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
35
36
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Change as needed
MACHINE_IP = "192.168.133.100"
Vagrant.configure("2") do |config|
config.vm.box = "bento/rockylinux-9"
config.vm.box_check_update = false
# https://github.com/dotless-de/vagrant-vbguest/issues/351
config.vbguest.auto_update = false if Vagrant.has_plugin?("vagrant-vbguest")
config.vm.network "private_network", ip: "#{MACHINE_IP}"
config.vm.provider "virtualbox" do |vb|
vb.cpus = 2
vb.memory = "2048"
end
# Bootstrap step right after `vagrant up`
config.vm.provision "shell", keep_color: true, path: "bin/boot.sh"
# Provision base services using podman compose
config.vm.provision "base services", type: "shell",
run: "never",
privileged: false,
keep_color: true,
path: "bin/basesvc.sh",
args: "up"
# Check if all base services are under normal status
config.vm.provision "health check", type: "shell",
run: "never",
privileged: false,
keep_color: true,
path: "bin/basesvc.sh",
args: "ps"
end