openapi-generator/Vagrantfile

39 lines
1.1 KiB
Ruby
Raw Normal View History

2016-01-22 06:34:13 +00:00
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
2018-10-05 04:46:00 +00:00
config.vm.box = "ubuntu/bionic64"
2016-01-22 06:34:13 +00:00
config.vm.provider "virtualbox" do |v|
v.name = "openapi-generator"
2016-01-22 06:34:13 +00:00
v.memory = 2048
v.cpus = 2
end
config.vm.box_check_update = true
#SSH
config.ssh.forward_agent = true
config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'"
#Provision
config.vm.provision "shell", inline: <<-SHELL
2018-10-05 04:46:00 +00:00
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'
2016-01-22 06:34:13 +00:00
sudo apt-get update
sudo apt-get upgrade -y
2018-10-05 04:46:00 +00:00
sudo apt-get install -y docker-ce
sudo usermod -aG docker vagrant
2016-01-22 06:34:13 +00:00
SHELL
end