nelles version
This commit is contained in:
12
docker/Vagrantfile
vendored
12
docker/Vagrantfile
vendored
@ -13,6 +13,7 @@ Vagrant.configure("2") do |config|
|
||||
# Every Vagrant development environment requires a box. You can search for
|
||||
# boxes at https://vagrantcloud.com/search.
|
||||
config.vm.box = "debian/bullseye64"
|
||||
config.vm.hostname = "docker"
|
||||
|
||||
# Disable automatic box update checking. If you disable this, then
|
||||
# boxes will only be checked for updates when the user runs
|
||||
@ -37,7 +38,7 @@ Vagrant.configure("2") do |config|
|
||||
# Create a public network, which generally matched to bridged network.
|
||||
# Bridged networks make the machine appear as another physical device on
|
||||
# your network.
|
||||
# config.vm.network "public_network"
|
||||
config.vm.network "public_network"
|
||||
|
||||
# Share an additional folder to the guest VM. The first argument is
|
||||
# the path on the host to the actual folder. The second argument is
|
||||
@ -54,7 +55,7 @@ Vagrant.configure("2") do |config|
|
||||
# vb.gui = true
|
||||
#
|
||||
# # Customize the amount of memory on the VM:
|
||||
vb.memory = "1024"
|
||||
vb.memory = "3096"
|
||||
end
|
||||
#
|
||||
# View the documentation for the provider you are using for more
|
||||
@ -65,12 +66,13 @@ Vagrant.configure("2") do |config|
|
||||
# documentation for more information about their specific syntax and use.
|
||||
config.vm.provision "shell", inline: <<-SHELL
|
||||
apt-get update
|
||||
apt install -y wget curl
|
||||
if ! which docker ; then
|
||||
apt install -y wget curl git vim
|
||||
if ! which docker ; then
|
||||
curl -s -o getdocker.sh https://get.docker.com
|
||||
bash getdocker.sh
|
||||
gpasswd -a docker vagrant
|
||||
gpasswd -a vagrant docker
|
||||
fi
|
||||
# apt-get install -y apache2
|
||||
SHELL
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user