Skip to content

Commit

Permalink
Vagrant setup for linux testing [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
christophercurrie committed Apr 5, 2015
1 parent 2333c34 commit 4f867b9
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Berksfile
@@ -0,0 +1,6 @@
source 'https://supermarket.chef.io'

cookbook 'git'
cookbook 'java'
cookbook 'maven'
cookbook 'sbt-extras'
38 changes: 38 additions & 0 deletions Berksfile.lock
@@ -0,0 +1,38 @@
DEPENDENCIES
git
java
maven
sbt-extras

GRAPH
7-zip (1.0.2)
windows (>= 1.2.2)
ark (0.9.0)
7-zip (>= 0.0.0)
windows (>= 0.0.0)
build-essential (2.2.2)
chef_handler (1.1.6)
dmg (2.2.2)
git (4.1.0)
build-essential (>= 0.0.0)
dmg (>= 0.0.0)
runit (>= 1.0)
windows (>= 0.0.0)
yum (~> 3.0)
yum-epel (>= 0.0.0)
java (1.31.0)
maven (1.3.0)
ark (~> 0.4)
java (~> 1.13)
windows (>= 0.0.0)
runit (1.5.18)
build-essential (>= 0.0.0)
yum (~> 3.0)
yum-epel (>= 0.0.0)
sbt-extras (0.4.0)
java (>= 0.0.0)
windows (1.36.6)
chef_handler (>= 0.0.0)
yum (3.5.3)
yum-epel (0.6.0)
yum (~> 3.0)
35 changes: 35 additions & 0 deletions Vagrantfile
@@ -0,0 +1,35 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"

if Vagrant.has_plugin?("vagrant-cachier")
config.cache.scope = :box
end

if Vagrant.has_plugin?("vagrant-omnibus")
config.omnibus.chef_version = :latest
end

config.vm.provider :virtualbox do |v|
v.memory = 2048
v.cpus = 2
end

config.vm.provision :chef_zero do |chef|
chef.add_recipe :git
chef.add_recipe :maven
chef.add_recipe :'sbt-extras'
chef.json = {
:java => {
:jdk_version => '6'
}
}
end

config.ssh.forward_agent
end

0 comments on commit 4f867b9

Please sign in to comment.