|
Elektra
0.8.20
|
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 ``` $ 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 withvagrant box list. Amongst your boxes you should see the boxbuildelektra`.
You can now set up a new VM from this box easily: Enter a directory where you want to set up the VM ```
$ mkdir ~/vagrant/buildelektra && cd $_
$ vagrant init buildelektra
$ vagrant up ```
When the machine is running, access it with ``` $ 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.
```
$ cd /vagrant
$ 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.
1.8.8