Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

Commit

Permalink
Add Vagrant config for Docker
Browse files Browse the repository at this point in the history
Added the Vagrant configuration required to use the docker provider. This is
faster and smaller than using the VM based system.

[skip ci]
  • Loading branch information
watson81 committed May 5, 2018
1 parent ea8e133 commit 020aab8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 020aab8

Please sign in to comment.