16 Star 59 Fork 16

dyrnq/apisixWeb

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Vagrantfile 1.75 KB
一键复制 编辑 原始数据 按行查看 历史
dyrnq 提交于 2024-03-19 19:15 . 升级docker版本到25.0.4
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/focal64"
config.vm.box_check_update = false
config.ssh.insert_key = false
# insecure_private_key download from https://github.com/hashicorp/vagrant/blob/master/keys/vagrant
config.ssh.private_key_path = "insecure_private_key"
my_machines = {
'vm' => '192.168.66.100',
'vm1' => '192.168.66.101',
}
my_machines.each do |name, ip|
config.vm.define name do |machine|
machine.vm.network "private_network", ip: ip
machine.vm.hostname = name
machine.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
vb.customize ["modifyvm", :id, "--vram", "128"]
vb.customize ["modifyvm", :id, "--ioapic", "on"]
vb.customize ["modifyvm", :id, "--cpus", "2"]
vb.customize ["modifyvm", :id, "--memory", "3072"]
end
machine.vm.provision "shell", inline: <<-SHELL
echo "root:vagrant" | sudo chpasswd
timedatectl set-timezone "Asia/Shanghai"
curl -fsSL https://mirror.ghproxy.com/https://github.com/dyrnq/install-docker/raw/main/install-docker.sh | bash -s docker \
--mirror tencent \
--version 25.0.4 \
--systemd-mirror ghproxy && \
usermod -aG docker vagrant
docker ps
SHELL
end
end
end
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/dyrnq/apisixWeb.git
[email protected]:dyrnq/apisixWeb.git
dyrnq
apisixWeb
apisixWeb
main

搜索帮助