forked from meta-toolkit/meta
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request meta-toolkit#75 from 31z4/develop
Add Vagrantfile
- Loading branch information
Showing
3 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Vagrant | ||
|
||
Build the latest version of the MeTA toolkit using [Vagrant](https://www.vagrantup.com/). Ubuntu 14.04 is used as a base Vagrant box. This project was initially made for [Text Retrieval and Search Engines](https://www.coursera.org/course/textretrieval) Coursera course. | ||
|
||
## Instructions | ||
|
||
1. Install Vagrant | ||
2. Run Vagrant | ||
``` | ||
vagrant up | ||
``` | ||
3. Check that everything is OK | ||
``` | ||
vagrant ssh | ||
cd meta/build | ||
ctest --output-on-failure | ||
``` | ||
## Notes | ||
Only VirtualBox provider was tested. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
|
||
Vagrant.configure(2) do |config| | ||
config.vm.box = "ubuntu/trusty64" | ||
config.vm.provision :shell, path: "bootstrap.sh", privileged: false | ||
|
||
config.vm.provider "virtualbox" do |v| | ||
v.cpus = 2 | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/usr/bin/env bash | ||
|
||
# this might take a while | ||
sudo apt-get update | ||
sudo apt-get install -y software-properties-common | ||
|
||
# add the ppa for cmake | ||
sudo add-apt-repository -y ppa:george-edison55/cmake-3.x | ||
sudo apt-get update | ||
|
||
# install dependencies | ||
sudo apt-get install -y cmake libicu-dev git g++ g++-4.8 | ||
|
||
# clone the project | ||
git clone https://github.com/meta-toolkit/meta.git | ||
cd meta/ | ||
|
||
# uncomment to build exact version | ||
# git reset --hard v1.3.2 | ||
|
||
# set up submodules | ||
git submodule update --init --recursive | ||
|
||
# set up a build directory | ||
mkdir build | ||
cd build | ||
cp ../config.toml . | ||
|
||
# configure and build the project | ||
cmake ../ -DCMAKE_BUILD_TYPE=Release | ||
make |