Skip to content

Commit 020aab8

Browse files
committed
Add Vagrant config for Docker
Added the Vagrant configuration required to use the docker provider. This is faster and smaller than using the VM based system. [skip ci]
1 parent ea8e133 commit 020aab8

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Vagrantfile

+7-2
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,23 @@ def get_cpu_setting(host)
3030
end
3131

3232
Vagrant.configure(2) do |config|
33-
override.vm.box = "ubuntu/trusty64"
3433
config.vm.synced_folder ".", "/vagrant"
3534
config.vm.define "docker-raspbian" do |config|
3635
config.vm.hostname = "docker-raspbian"
3736
config.ssh.forward_agent = true
3837
config.vm.provision "shell", path: "scripts/provision.sh", privileged: false
39-
config.vm.provider "virtualbox" do |vb|
38+
config.vm.provider "virtualbox" do |vb, override|
39+
override.vm.box = "ubuntu/trusty64"
4040
# find out on which host os we are running
4141
host = RbConfig::CONFIG['host_os']
4242
vb.customize ["modifyvm", :id, "--ioapic", "on"]
4343
vb.memory = get_memory_setting(host)
4444
vb.cpus = get_cpu_setting(host)
4545
end
46+
config.vm.provider "docker" do |docker|
47+
docker.image = "tknerr/baseimage-ubuntu:14.04"
48+
docker.has_ssh = true
49+
docker.remains_running = false
50+
end
4651
end
4752
end

0 commit comments

Comments
 (0)