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

Commit

Permalink
Merge pull request #44 from watson81/pr-BuildWithDocker
Browse files Browse the repository at this point in the history
Build With Docker
  • Loading branch information
StefanScherer authored May 7, 2018
2 parents 42bd95a + ddc55e1 commit c30f102
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
version: 2
jobs:
build:
machine: true
docker:
- image: buildpack-deps:trusty-scm
steps:
- checkout

Expand Down
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|
config.vm.box = "boxcutter/ubuntu1404"
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 c30f102

Please sign in to comment.