-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
54 lines (45 loc) · 1.72 KB
/
Vagrantfile
File metadata and controls
54 lines (45 loc) · 1.72 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# -*- mode: ruby -*-
# vi: set ft=ruby :
#
# Configure Vagrant environment with OpenFST and OpenGRM
#
# Copyright 2018-2019 Wincent Balin
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/focal64"
config.vm.provider "virtualbox" do |vb|
vb.gui = false # we log into here using ssh
vb.cpus = 2 # my computer has that many
vb.memory = 6144 # We will compile a couple of things
vb.customize ["modifyvm", :id, "--ioapic", "on"]
end
# Install packages and compile OpenFST
config.vm.provision "shell", inline: <<-SHELL
# Update packages
apt-get update
#apt-get upgrade -y
# Install utilities
apt-get install -y tmux vim mc
# Install OpenFST compilation requirements
apt-get install -y build-essential make zlib1g-dev python3-dev libreadline6-dev libncurses5-dev
# Install Pynini prerequisites
apt-get install -y python3-setuptools cython3 libre2-dev
# Install everything OpenFST and OpenGRM
/vagrant/install-opengrm.sh
# Install Graphviz to be able to look at diagrams
apt-get install -y graphviz
# Link host directory into home directory
ln -s /vagrant /home/vagrant/work
SHELL
end