|
|
|
Vagrant.configure(2) do |config|
|
|
|
|
config.vm.box = "debian/buster64"
|
|
|
|
config.vm.hostname = "umbrel-dev"
|
|
|
|
config.vm.network "public_network", bridge: "en0: Wi-Fi (AirPort)"
|
|
|
|
|
|
|
|
# Configure similar specs to a Raspberry Pi
|
|
|
|
config.vm.provider "virtualbox" do |vb|
|
|
|
|
vb.customize ["modifyvm", :id, "--memory", "4096"]
|
|
|
|
vb.customize ["modifyvm", :id, "--cpus", "2"]
|
|
|
|
end
|
|
|
|
|
|
|
|
# Provision Docker
|
|
|
|
config.vagrant.plugins = "vagrant-docker-compose"
|
|
|
|
config.vm.provision :docker
|
|
|
|
config.vm.provision :docker_compose
|
|
|
|
|
|
|
|
# Setup script
|
|
|
|
config.vm.provision "shell", inline: <<-SHELL
|
|
|
|
# Install Umbrel
|
|
|
|
apt-get update
|
|
|
|
apt-get install -y git
|
|
|
|
git clone https://github.com/getumbrel/umbrel.git
|
|
|
|
cd umbrel
|
|
|
|
REGTEST=1 ./configure-box.sh
|
|
|
|
sudo chown -R 1000:1000 lnd/ bitcoin/
|
|
|
|
sed -i 's/umbrel.local/#{config.vm.hostname}.local/g' docker-compose.yml
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
# Install Avahi
|
|
|
|
apt-get install -y avahi-daemon avahi-discover libnss-mdns
|
|
|
|
SHELL
|
|
|
|
|
|
|
|
# Message
|
|
|
|
config.vm.post_up_message = "Umbrel development environment ready: http://#{config.vm.hostname}.local"
|
|
|
|
end
|