Skip to content
Snippets Groups Projects
Vagrantfile 814 B
Newer Older
# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
  config.vm.box = "debian/jessie64"
  config.vm.synced_folder ".", "/cryptops-api", type: 'virtualbox'
  # If cryptops-client directory exists, mount it as well so you can test easier
  if File.directory?(File.expand_path('../cryptops-client'))
      config.vm.synced_folder "../cryptops-client", "/cryptops-client", type: 'virtualbox'
  end
  config.vm.provision "shell", inline: <<-SHELL
    apt-get update
    apt-get install -y libmicrohttpd-dev libjansson-dev libcurl4-gnutls-dev libgnutls28-dev libgcrypt20-dev libcryptsetup-dev
    if ! grep -q 'export LD_LIBRARY_PATH="/cryptops-api/libraries"' /home/vagrant/.bashrc ; then
        echo export LD_LIBRARY_PATH="/cryptops-api/libraries">> /home/vagrant/.bashrc
    fi
  SHELL
end