No description
Find a file
2018-04-30 21:40:25 +02:00
prebuild We only build for unstable now 2018-04-30 21:40:25 +02:00
.gitignore [enh] Add gitignore with .vagrant folder and logs. 2016-03-17 15:08:19 +01:00
README.md Update (#6) 2018-04-30 20:28:45 +02:00
Vagrantfile Update (#6) 2018-04-30 20:28:45 +02:00

YunoHost Vagrantfile

Vagrantfile to use YunoHost boxes for Jessie/Wheezy, using the stable/testing/unstable releases.

Prerequisite

Install Vagrant and Virtualbox provider

apt-get install vagrant virtualbox

How use these yunohost boxes ?

  • 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 and stretch-unstable.

Associated ip

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.

Don't forget to run postinstall

After doing vagrant ssh run the postinstall by cli or into your browser

CLI

vagrant ssh stable
sudo yunohost tools postinstall -d ynh.local -p myAdminPassword

Browser

Go to the coresponding domain in your browser and follow the instructions.

How build these boxes yourself instead of using prebuild boxes ?

See README.md file in the prebuild folder.