代码拉取完成,页面将自动刷新
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/bionic64"
config.vm.provider "virtualbox" do |vb|
# vb.gui = true
# Customize the amount of memory on the VM:
vb.memory = "1024"
vb.cpus = "1"
end
#config.vbguest.iso_path = "https://download.virtualbox.org/virtualbox/6.1.10/VBoxGuestAdditions_6.1.10.iso"
config.vm.synced_folder "#{Dir.home}/.rsocket", "/home/vagrant/.rsocket"
config.vm.provision "shell", inline: <<-SHELL
add-apt-repository ppa:openjdk-r/ppa -y
apt-get update
echo "\n----- Installing Java 8 ------\n"
apt-get -y install openjdk-8-jdk
update-alternatives --config java
curl -LSfs https://japaric.github.io/trust/install.sh | sh -s -- --git casey/just --target x86_64-unknown-linux-musl --to /usr/bin
SHELL
config.vm.define "broker1" do |broker|
broker.vm.network "private_network", ip: "192.168.11.11"
end
config.vm.define "broker2" do |broker|
broker.vm.network "private_network", ip: "192.168.11.12"
end
config.vm.define "broker3" do |broker|
broker.vm.network "private_network", ip: "192.168.11.13"
end
end
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。