Commit 7b5697da authored by Alexander Alemayhu's avatar Alexander Alemayhu

Add support for Vagrant

Vagrant[0] makes it easier to create a reproducible environment and can
potentially help new people to get a environment up and running by. This setup
uses the upsteam version of docker and it also adds the vagrant user to the
docker group while not required but for debug nice to have access to docker. The
vm should have everything you need including elasticsearch and various
dependencies required to run the application.

Using this should look something like:

  vagrant up
  vagrant ssh
  cd /vagrant && make run

Later when you have changes:
  vagrant reload

This is also something we could use with some continuous integration.  Not sure
about travis, but Jenkins has a plugin[1] which might be useful.

Please note that docker is not included in so that the
script is still useful for non docker users.

parent 50980855
......@@ -95,3 +95,5 @@
# Code Recommenders
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config| = "debian/testing64"
config.vm.provision :shell, path: ""
config.vm.provision "shell", privileged: true, inline: <<-SHELL
apt-get install -y curl make
curl -sSL | sh
adduser vagrant docker
make -C /vagrant es
su - vagrant -c "make -C /vagrant build"
apt-get update
apt-get install -y maven openjdk-8-jdk python-mechanize
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment