Private network, add sync, and fix curl download

This commit is contained in:
Kris Lamoureux 2020-09-29 15:38:50 -04:00
parent f8238c4690
commit a007f7d4db
Signed by: kris
GPG Key ID: 3EDA9C3441EDA925
2 changed files with 9 additions and 2 deletions

2
Vagrantfile vendored
View File

@ -1,4 +1,6 @@
Vagrant.configure("2") do |config|
config.vm.box = "debian/buster64"
config.vm.synced_folder ".", "/vagrant"
config.vm.network "private_network", type: "dhcp"
config.vm.provision "shell", path: "install-docker.sh"
end

View File

@ -4,6 +4,12 @@
#docker_version="5:18.09.9~3-0~debian-buster"
#compose_version="1.25.0"
# Install curl for downloading docker-compose
apt-get update
apt-get install -y curl
# Set default versions if override settings don't exist
if [ -z ${docker_version+x} ]; then
packages="docker-ce docker-ce-cli containerd.io"
@ -19,9 +25,8 @@ fi
# Allow apt to use a repository over HTTPS
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y apt-transport-https ca-certificates \
curl gnupg-agent software-properties-common
gnupg-agent software-properties-common
# Add Dockers official GPG key
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -