Elektra  0.8.20
Trying out Elektra with Vagrant

This Vagrantfile provisions a machine based on debian/jessie64 with all tools to build Elektra.

If Vagrant is installed on your machine change to the directory containing the file you are currently reading and build a box for vagrant with

1 $ vagrant up && vagrant package && vagrant box add buildelektra package.box && vagrant destroy -f

This will take some time, but when its done you have a new vagrantbox as you can verify with vagrant box list. Amongst your boxes you should see the box buildelektra.

You can now set up a new VM from this box easily: Enter a directory where you want to set up the VM

1 # enter a directory where you want to set up the VM
2 $ mkdir ~/vagrant/buildelektra && cd $_
3 # now you create a Vagrantfile ...
4 $ vagrant init buildelektra
5 # ... and start the VM
6 $ vagrant up

When the machine is running, access it with

1 $ vagrant ssh

In this SSH session you can interact with the machine.

By default Vagrant synchronizes the folder on the host machine containing the vagrantfile with the folder /vagrant in the VM. Therefore we will build a .deb package of Elektra in this folder.

1 # in the VM change to the synched folder
2 $ cd /vagrant
3 # build the commit with the tag "0.8.19"
4 $ sudo buildelektra -b elektra 0.8.19

When you are done leave the VM with CTRL-D. The folder should now contain the created .deb file.

You can either shut the VM down with vagrant halt or delete it with vagrant destroy.