Vagrantfile to use YunoHost boxes for Jessie/Wheezy, using the stable/testing/unstable releases.
Install Vagrant and Virtualbox provider
apt-get install vagrant virtualbox
- Install Vagrant and the configure_networks plugin
vagrant plugin install configure_networks
- Add prebuild YunoHost boxes in vagrant
vagrant box add yunohost/jessie-unstable https://build.yunohost.org/yunohost-unstable.box
vagrant box add yunohost/stretch-unstable https://build.yunohost.org/yunohost-stretch-unstable.box
- Download the main Vagrant file
wget https://raw.githubusercontent.com/Yunohost/yunohost-vagrant/master/Vagrantfile
- Run the box you need by calling vagrant up
DISTRIB
, example:
vagrant up unstable
DISTRIB
:unstable
andstretch-unstable
.
To test on your computer, add this lines to your /etc/hosts .
192.168.33.82 ynh.local
192.168.33.82 ynh-stretch.local
VMs have different ip to be able to run twice. You can put your own domain name and change the ip in the vagrant file.
After doing vagrant ssh run the postinstall by cli or into your browser
vagrant ssh stable
sudo yunohost tools postinstall -d ynh.local -p myAdminPassword
Go to the coresponding domain in your browser and follow the instructions.
- https://ynh.local for stretch
- https://ynh-stretch.local for unstable
See README.md file in the prebuild folder.