Add docker config for Vagrant

This commit is contained in:
Basti 2017-04-17 11:47:00 +02:00
parent 08529c3344
commit 521f48a21e

25
Vagrantfile vendored
View File

@ -15,11 +15,18 @@ Vagrant.configure(2) do |config|
config.vm.box = "bento/ubuntu-15.04"
config.vm.provider "virtualbox" do |vb|
config.vm.provider :virtualbox do |vb|
# Customize the amount of memory on the VM:
vb.memory = "1024"
end
config.vm.provider :docker do |d, override|
d.image = "nishidayuya/docker-vagrant-ubuntu:xenial"
d.has_ssh = true
override.vm.box = nil
override.ssh.port = 22
end
# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
# `vagrant box outdated`. This is not recommended.
@ -75,13 +82,19 @@ Vagrant.configure(2) do |config|
# sudo apt-get install -y apache2
# SHELL
# Install latest Chef via Omnibus
# Needs `vagrant plugin install vagrant-omnibus`
if Vagrant.has_plugin?("vagrant-omnibus")
config.omnibus.chef_version = "12.19.36"
end
config.vm.provision :chef_zero do |chef|
chef.cookbooks_path = ['./cookbooks', './site-cookbooks']
chef.data_bags_path = './data_bags'
chef.roles_path = './roles'
chef.cookbooks_path = ['cookbooks', 'site-cookbooks']
chef.data_bags_path = 'data_bags'
chef.roles_path = 'roles'
chef.node_name = "vagrant-node"
chef.nodes_path = './nodes'
chef.environments_path = './environments'
chef.nodes_path = 'nodes'
chef.environments_path = 'environments'
chef.encrypted_data_bag_secret_key_path = '.chef/encrypted_data_bag_secret'
chef.environment = 'development'
# chef.add_recipe 'kosmos-wordpress'