doc/vagrant.md
2014-12-04 12:40:12 +01:00

1.7 KiB

Vagrant and YunoHost

Here is a small memo-documentation page on how to test/develop YunoHost with Vagrant.

Find other ways to install YunoHost here.

Prerequisite: an x86 computer with VirtualBox installed and enough RAM capacity to be able to run a small virtual machine.


Initialization

Create a project folder

mkdir YunoHost
cd YunoHost

The following command will initialize the project with a Debian Wheezy base image

vagrant init chef/debian-7.7
/!\ You must have a working image call `chef/debian-7.7`. If not, just do `vagrant box add chef/debian-7.7 https://vagrantcloud.com/chef/boxes/debian-7.7/versions/1.0.0/providers/virtualbox.box`

Uncomment (remove the leading #) the following line in the newly created Vagrantfile to get access from the host system

config.vm.network "private_network", ip: "192.168.33.10"

Clone the Yunohost install script repository

git clone https://github.com/YunoHost/install_script

Installation

Start the virtual machine

vagrant up

Connect to the started virtual machine

vagrant ssh

The root user must have a password

sudo passwd

Upgrade the system

sudo apt-get update && sudo apt-get upgrade

Execute the installation script

cd /vagrant/install_script && sudo ./install_yunohostv2


*Once the installation is finished, you may want to proceed to post-installation: yunohost.org/postinstall *