Skip to content

Commit

Permalink
update outdated Vagrantfile. (#1156)
Browse files Browse the repository at this point in the history
  • Loading branch information
mknoszlig authored and wing328 committed Oct 5, 2018
1 parent b4d835f commit 9939702
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Vagrantfile
Expand Up @@ -6,7 +6,7 @@ VAGRANTFILE_API_VERSION = "2"


Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|


config.vm.box = "ubuntu/trusty64" config.vm.box = "ubuntu/bionic64"


config.vm.provider "virtualbox" do |v| config.vm.provider "virtualbox" do |v|
v.name = "openapi-generator" v.name = "openapi-generator"
Expand All @@ -23,13 +23,15 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|


#Provision #Provision
config.vm.provision "shell", inline: <<-SHELL config.vm.provision "shell", inline: <<-SHELL
sudo touch /var/lib/cloud/instance/locale-check.skip sudo apt-get update
sudo apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common
sudo sh -c 'echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" > /etc/apt/sources.list.d/docker.list' curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-cache policy docker-engine 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 update
sudo apt-get upgrade -y sudo apt-get upgrade -y
sudo apt-get install -y docker-engine sudo apt-get install -y docker-ce
sudo usermod -aG docker vagrant sudo usermod -aG docker vagrant
SHELL SHELL


Expand Down

0 comments on commit 9939702

Please sign in to comment.