-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
36 lines (27 loc) · 977 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# -*- mode: ruby -*-
# vi: set ft=ruby :
# This Vagrantfile defines the requirements of a Linux development environment
# to develop Fiji. This environment can be set up conveniently by installing
# Vagrant and VirtualBox and calling "vagrant up" in the Fiji directory.
#
# See https://www.vagrantup.com/ for details
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
$provision = <<PROVISION
apt-get update
apt-get install -y openjdk-7-jdk maven
cat >> /home/vagrant/.profile << \EOF
cd /vagrant
cat << \TOOEOF
Welcome to the Vagrant setup for Fiji!
--------------------------------------
To build Fiji, just execute 'mvn'.
TOOEOF
EOF
PROVISION
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Start with a 64-bit Ubuntu 12.04 "Precise Penguin" box
config.vm.box = "ubuntu"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.provision :shell, :inline => $provision
end