scottslowe-learning-tools/vagrant-docker-json/host/Vagrantfile
Scott Lowe 1da4bc2d7f Add files for Vagrant + Docker + JSON
Add files for a multi-container environment using the Vagrant Docker provider and an external JSON data file. That includes a Vagrantfile, external JSON data file, host VM Vagrantfile, and README.md.
2016-02-10 20:40:18 -07:00

27 lines
791 B
Ruby

# -*- mode: ruby -*-
# vi: set ft=ruby :
# Specify Vagrant version and Vagrant API version
Vagrant.require_version ">= 1.6.0"
VAGRANTFILE_API_VERSION = "2"
# Create and configure the VM(s)
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Assign a friendly name to this host VM
config.vm.hostname = "docker-host"
# Skip checking for an updated Vagrant box
config.vm.box_check_update = false
# Always use Vagrant's default insecure key
config.ssh.insert_key = false
# Spin up a "host box" for use with the Docker provider
# and then provision it with Docker
config.vm.box = "slowe/ubuntu-trusty-x64"
config.vm.provision "docker"
# Disable synced folders (prevents an NFS error on "vagrant up")
config.vm.synced_folder ".", "/vagrant", disabled: true
end