-
Notifications
You must be signed in to change notification settings - Fork 14
/
Vagrantfile
32 lines (30 loc) · 1.35 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Vagrant.configure("2") do |config|
# For a complete reference, please see the online documentation at
# https://docs.vagrantup.com.
# Every Vagrant development environment requires a box. You can search for
# boxes at https://atlas.hashicorp.com/search.
config.vm.box = "tylerdave/openapi-tutorial"
config.vm.hostname = "openapi-tutorial"
config.vm.define "openapi-tutorial" do |tutorial|
end
config.vm.provider :virtualbox do |vb|
vb.name = "openapi-tutorial"
vb.customize [ "modifyvm", :id, "--uartmode1", "disconnected" ]
end
config.ssh.keep_alive = true
config.ssh.username = "ubuntu"
config.vm.synced_folder ".", "/home/ubuntu/tutorial-repo"
config.vm.network "forwarded_port", guest: 5000, host: 5000 # connexion Mok
config.vm.network "forwarded_port", guest: 8080, host: 8080 # connexion API
config.vm.network "forwarded_port", guest: 8000, host: 8000 # swagger-editor
config.vm.network "forwarded_port", guest: 8001, host: 8001 # swagger-editor-v3
# config.vm.provider "virtualbox" do |vb|
# # Display the VirtualBox GUI when booting the machine
# vb.gui = true
# # Customize the amount of memory on the VM:
# vb.memory = "1024"
# end
config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'"
config.vm.provision "shell",
inline: "echo -e \"vagrant\nvagrant\" | passwd ubuntu | 2>&1"
end