Skip to content

Commit 3fdb2ee

Browse files
committed
Add Vagrant config
[Vagrant](http://vagrantup.com) is used to create a stable and reproducible virtual machine for build and test purposes. We're using Ubuntu 14.04 LTS (Trusty). Installed software: | Package | Version | |---------------|----------------------| | dos2unix | 6.0.4 | | git | 1.9.1 | | git-flow | 1.6.1 (AVH Edition) | | ghostscript | 9.10 | | imagemagick | 6.7.7-10 | | maven | 3.0.5 | | mc | 4.8.11 | | openjdk-7-jdk | 1.7.0_91 | | php5-cli | 5.5.9 | | screen | 4.1.0 | Usage: ```bash vagrant box add ubuntu/trusty64 vagrant up vagrant ssh cd /vagrant mvn clean install -DgsExec=$(which gs) -DcompareExec=$(which compare) | tee mvn.log exit vagrant halt ``` After you shut down the VM, the build artifacts will still be available in the repository directory.
1 parent 4e29669 commit 3fdb2ee

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -152,3 +152,5 @@ nbactions*.xml
152152

153153
# Ignore generated files
154154
samples/src/test/resources/db/filmfestival.log
155+
156+
.vagrant/

Vagrantfile

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
$script = <<SCRIPT
2+
#!/usr/bin/env bash
3+
4+
apt-get update
5+
apt-get -y install dos2unix git git-flow ghostscript imagemagick maven mc openjdk-7-jdk php5-cli screen
6+
7+
git config --global color.ui true
8+
git config --global core.abbrev 10
9+
git config --global core.editor nano
10+
git config --global core.abbrev 10
11+
git config --global --bool pull.rebase true
12+
git config --global branch.autosetupmerge always
13+
git config --global branch.autosetuprebase always
14+
git config --global core.autocrlf input
15+
git config --global core.safecrlf false
16+
git config --global apply.whitespace nowarn
17+
git config --global push.default simple
18+
git config --global alias.ignore '!gi() { curl -L -s https://www.gitignore.io/api/$@ ;}; gi'
19+
SCRIPT
20+
21+
Vagrant.configure(2) do |config|
22+
config.vm.box = "ubuntu/trusty64"
23+
config.vm.provision :shell, inline: $script
24+
config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'"
25+
config.vm.provider :virtualbox do |vb|
26+
vb.customize ["modifyvm", :id, "--memory", "2048"]
27+
end
28+
end

0 commit comments

Comments
 (0)