You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.8 KiB

umbrelLogo = <<-TEXT
,;###GGGGGGGGGGl#Sp
,##GGGlW""^' '`""%GGGG#S,
,#GGG" "lGG#o
#GGl^ '$GG#
,#GGb \GGG,
lGG" "GGG
#GGGlGGGl##p,,p##lGGl##p,,p###ll##GGGG
!GGGlW"""*GGGGGGG#""""WlGGGGG#W""*WGGGGS
"" "^ '" ""
@GGS lG#
!GGG !GGG
!GGG !GGG
!GGG !GGG
!GGG !GGG
!GGG !GGG
'GGG $GGl
"GGG#psqp##GG#
"%GGGGGG#"
TEXT
5 years ago
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
5 years ago
# Provision Docker
config.vagrant.plugins = "vagrant-docker-compose"
config.vm.provision :docker
config.vm.provision :docker_compose
5 years ago
# Update package lists
5 years ago
config.vm.provision "shell", inline: <<-SHELL
apt-get update
SHELL
# Install Umbrel
config.vm.provision "shell", inline: <<-SHELL
5 years ago
apt-get install -y git
5 years ago
cd /vagrant/getumbrel/umbrel
5 years ago
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
SHELL
5 years ago
# Install Avahi
config.vm.provision "shell", inline: <<-SHELL
5 years ago
apt-get install -y avahi-daemon avahi-discover libnss-mdns
5 years ago
SHELL
# Message
config.vm.post_up_message = "#{umbrelLogo}\nUmbrel development environment ready: http://#{config.vm.hostname}.local"
5 years ago
end