From 020aab8c618056be66fa7d90c4284c7746826cd2 Mon Sep 17 00:00:00 2001 From: Patrick Watson Date: Sun, 29 Apr 2018 22:54:12 -0400 Subject: [PATCH] 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] --- Vagrantfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index c8a83df..aec79ea 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -30,18 +30,23 @@ def get_cpu_setting(host) end Vagrant.configure(2) do |config| - override.vm.box = "ubuntu/trusty64" config.vm.synced_folder ".", "/vagrant" config.vm.define "docker-raspbian" do |config| config.vm.hostname = "docker-raspbian" config.ssh.forward_agent = true config.vm.provision "shell", path: "scripts/provision.sh", privileged: false - config.vm.provider "virtualbox" do |vb| + config.vm.provider "virtualbox" do |vb, override| + override.vm.box = "ubuntu/trusty64" # find out on which host os we are running host = RbConfig::CONFIG['host_os'] vb.customize ["modifyvm", :id, "--ioapic", "on"] vb.memory = get_memory_setting(host) vb.cpus = get_cpu_setting(host) end + config.vm.provider "docker" do |docker| + docker.image = "tknerr/baseimage-ubuntu:14.04" + docker.has_ssh = true + docker.remains_running = false + end end end