Merge pull request #9381 from cblecker/docker-vagrantfile-fix
Vagrantfile incorrectly using docker image regardless of provider
This commit is contained in:
commit
b22f12ab65
|
@ -53,6 +53,10 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
||||||
config.vm.provision "shell", inline: $script, privileged: false
|
config.vm.provision "shell", inline: $script, privileged: false
|
||||||
config.vm.synced_folder '.', '/opt/gopath/src/github.com/hashicorp/terraform'
|
config.vm.synced_folder '.', '/opt/gopath/src/github.com/hashicorp/terraform'
|
||||||
|
|
||||||
|
config.vm.provider "docker" do |v, override|
|
||||||
|
override.vm.box = "tknerr/baseimage-ubuntu-14.04"
|
||||||
|
end
|
||||||
|
|
||||||
["vmware_fusion", "vmware_workstation"].each do |p|
|
["vmware_fusion", "vmware_workstation"].each do |p|
|
||||||
config.vm.provider p do |v|
|
config.vm.provider p do |v|
|
||||||
v.vmx["memsize"] = "4096"
|
v.vmx["memsize"] = "4096"
|
||||||
|
@ -60,10 +64,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
config.vm.provider "docker" do
|
|
||||||
config.vm.box = "tknerr/baseimage-ubuntu-14.04"
|
|
||||||
end
|
|
||||||
|
|
||||||
config.vm.provider "virtualbox" do |v|
|
config.vm.provider "virtualbox" do |v|
|
||||||
v.memory = 4096
|
v.memory = 4096
|
||||||
v.cpus = 2
|
v.cpus = 2
|
||||||
|
|
Loading…
Reference in New Issue