2016-01-22 14:34:13 +08: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 06:46:00 +02:00
config . vm . box = " ubuntu/bionic64 "
2016-01-22 14:34:13 +08:00
config . vm . provider " virtualbox " do | v |
2018-05-11 15:28:32 +08:00
v . name = " openapi-generator "
2016-01-22 14:34:13 +08: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 06:46:00 +02: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 14:34:13 +08:00
sudo apt - get update
sudo apt - get upgrade - y
2018-10-05 06:46:00 +02:00
sudo apt - get install - y docker - ce
2016-02-03 13:11:36 +08:00
sudo usermod - aG docker vagrant
2016-01-22 14:34:13 +08:00
SHELL
end