diff --git a/Vagrantfile b/Vagrantfile index 03735a6b6af9..3baf531f23ac 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -6,7 +6,7 @@ VAGRANTFILE_API_VERSION = "2" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| - config.vm.box = "ubuntu/trusty64" + config.vm.box = "ubuntu/bionic64" config.vm.provider "virtualbox" do |v| v.name = "openapi-generator" @@ -23,13 +23,15 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| #Provision config.vm.provision "shell", inline: <<-SHELL - sudo touch /var/lib/cloud/instance/locale-check.skip - sudo apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D - sudo sh -c 'echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" > /etc/apt/sources.list.d/docker.list' - sudo apt-cache policy docker-engine + sudo apt-get update + sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common + curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - + sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ + $(lsb_release -cs) stable" + sudo sh -c 'echo "deb https://apt.dockerproject.org/repo ubuntu-cosmic main" > /etc/apt/sources.list.d/docker.list' sudo apt-get update sudo apt-get upgrade -y - sudo apt-get install -y docker-engine + sudo apt-get install -y docker-ce sudo usermod -aG docker vagrant SHELL