Skip to content
Snippets Groups Projects
Commit cc550fef authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

use /cryptops-api instead of /test in Vagrantfile and deploy script. Also...

use /cryptops-api instead of /test in Vagrantfile and deploy script. Also mount cryptops-client directory if it exists
parent 45849f53
No related branches found
No related tags found
No related merge requests found
......@@ -3,9 +3,16 @@
Vagrant.configure("2") do |config|
config.vm.box = "debian/jessie64"
config.vm.synced_folder ".", "/test", type: 'virtualbox'
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment