Compare commits

...

3 Commits

2 changed files with 11 additions and 7 deletions

4
Vagrantfile vendored
View File

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

View File

@ -4,6 +4,14 @@
#docker_version="5:18.09.9~3-0~debian-buster" #docker_version="5:18.09.9~3-0~debian-buster"
#compose_version="1.25.0" #compose_version="1.25.0"
# Install software used for downloading Docker
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y curl apt-transport-https ca-certificates \
gnupg-agent software-properties-common
# Set default versions if override settings don't exist # Set default versions if override settings don't exist
if [ -z ${docker_version+x} ]; then if [ -z ${docker_version+x} ]; then
packages="docker-ce docker-ce-cli containerd.io" packages="docker-ce docker-ce-cli containerd.io"
@ -17,12 +25,6 @@ if [ -z ${compose_version+x} ]; then
compose_version=$(echo $latest | awk '{print substr($1, 14, length($1) - 14)}') compose_version=$(echo $latest | awk '{print substr($1, 14, length($1) - 14)}')
fi 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
# Add Dockers official GPG key # Add Dockers official GPG key
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
sudo apt-key fingerprint 9DC858229FC7DD38854AE2D88D81803C0EBFCD88 sudo apt-key fingerprint 9DC858229FC7DD38854AE2D88D81803C0EBFCD88