forked from b-studios/fcd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
37 lines (27 loc) · 912 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
37
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.synced_folder "./artifact", "/home/vagrant/artifact"
config.vm.synced_folder "./configs", "/home/vagrant/configs"
config.vm.provider "virtualbox" do |v|
v.memory = 2048
v.cpus = 4
end
config.vm.provision "shell", inline: <<-SHELL
# Refresh sources
sudo apt-get update -y
# Graphviz for printing parsers to graphs
sudo apt-get install -y graphviz
# Java
sudo apt-get install -y openjdk-7-jdk
# Sbt
sudo mkdir -p /home/vagrant/bin
pushd /home/vagrant/bin/
sudo wget https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/0.13.8/sbt-launch.jar
sudo cp /home/vagrant/configs/sbt.sh /home/vagrant/bin/sbt
sudo chmod u+x /home/vagrant/bin/sbt
sudo chmod +x /home/vagrant/bin/sbt
popd
SHELL
end