mirror of
https://github.com/YunoHost/doc.git
synced 2024-09-03 20:06:26 +02:00
[fix] Update doc about vagrant setup
This commit is contained in:
parent
c0b36cc5cb
commit
b3d1f6fdb7
2 changed files with 27 additions and 38 deletions
32
vagrant.md
32
vagrant.md
|
@ -1,7 +1,5 @@
|
|||
# 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](/install)**.*
|
||||
|
||||
<img src="/images/vagrant.png" width=250>
|
||||
|
@ -18,15 +16,19 @@ mkdir YunoHost
|
|||
cd YunoHost
|
||||
```
|
||||
|
||||
The following command will initialize the project with a Yunohost image based on Debian Jeesie
|
||||
The following command will initialize the project with a Yunohost image based on Debian Jessie
|
||||
```bash
|
||||
vagrant init yunohost/stable8
|
||||
vagrant box add yunohost/jessie-stable https://build.yunohost.org/yunohost-jessie-stable.box --provider virtualbox
|
||||
vagrant init yunohost/jessie-stable
|
||||
```
|
||||
<blockquote>
|
||||
<span class="text-warning">/!\</span> You must have a working image call `yunohost/stable8`. If not, just do
|
||||
`vagrant box add yunohost/stable8 https://atlas.hashicorp.com/yunohost/boxes/stable8/versions/1.0.0/providers/virtualbox.box`
|
||||
<span class="text-warning">/!\</span> If you prefer use the beta version : https://build.yunohost.org/yunohost-jessie-testing.box
|
||||
</blockquote>
|
||||
|
||||
You need to activate the network for the YunoHost instance.
|
||||
```bash
|
||||
sed -i 's/# config\.vm\.network "private_network"/config.vm.network "private_network"/' Vagrantfile```
|
||||
|
||||
---
|
||||
|
||||
## Run a vm
|
||||
|
@ -46,24 +48,16 @@ Upgrade the system
|
|||
sudo apt-get update && sudo apt-get upgrade
|
||||
```
|
||||
|
||||
You can access to your vm with the ip 192.168.33.80
|
||||
You can access to your vm with the ip 192.168.33.10
|
||||
|
||||
The IP addresses related to the boxes are set by default but can be changed in the network settings.
|
||||
|
||||
---
|
||||
|
||||
*Once the installation is finished, you may want to proceed to post-installation: **[yunohost.org/postinstall](/postinstall)** *
|
||||
|
||||
|
||||
## Boxes with wheezy or testing/unstable repository
|
||||
## Development tools
|
||||
|
||||
If you need a vm to test something with wheezy or testing/unstable version of Yunohost. There is a Vagrantfile and 5 other boxes in preparation. For the moment, you can build the boxes by following instructions on these repo: https://github.com/zamentur/yunohost-vagrant
|
||||
To test some code on YunoHost, you should prefer to use directly [ynh-dev](https://github.com/yunohost/ynh-dev).
|
||||
|
||||
| Box | IP |
|
||||
| --- | --- |
|
||||
| stable8 | 192.168.33.80 |
|
||||
| testing8 | 192.168.33.81 |
|
||||
| unstable8 | 192.168.33.82 |
|
||||
| stable7 | 192.168.33.70 |
|
||||
| testing7 | 192.168.33.71 |
|
||||
| unstable7 | 192.168.33.72 |
|
||||
|
||||
The IP addresses related to the boxes are set by default but can be changed in the network settings.
|
|
@ -1,7 +1,5 @@
|
|||
# Vagrant et YunoHost
|
||||
|
||||
*Voici une petite page de documentation en guise de mémo sur la manière de tester/développer YunoHost avec Vagrant.*
|
||||
|
||||
*Toutes les autres façons d’installer YunoHost sont listées **[ici](/install_fr)**.*
|
||||
|
||||
<img src="/images/vagrant.png" width=250>
|
||||
|
@ -18,15 +16,20 @@ mkdir YunoHost
|
|||
cd YunoHost
|
||||
```
|
||||
|
||||
La commande suivante va initialiser le projet avec une image Debian Wheezy de base
|
||||
La commande suivante va initialiser le projet avec une image YunoHost de base
|
||||
```bash
|
||||
vagrant init yunohost/stable8
|
||||
vagrant box add yunohost/jessie-stable https://build.yunohost.org/yunohost-jessie-stable.box --provider virtualbox
|
||||
vagrant init yunohost/jessie-stable
|
||||
```
|
||||
<blockquote>
|
||||
<span class="text-warning">/!\</span> Vous devez avoir une box `yunohost/stable8`. Si ce n’est pas le cas, ajoutez-la :
|
||||
`vagrant box add yunohost/stable8 https://atlas.hashicorp.com/yunohost/boxes/stable8/versions/1.0.0/providers/virtualbox.box`
|
||||
<span class="text-warning">/!\</span>Si vous préférez utiliser la version beta https://build.yunohost.org/yunohost-jessie-testing.box
|
||||
</blockquote>
|
||||
|
||||
Puis, il faut activer le réseau pour l'instance YunoHost:
|
||||
```bash
|
||||
sed -i 's/# config\.vm\.network "private_network"/config.vm.network "private_network"/' Vagrantfile
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Installation
|
||||
|
@ -46,24 +49,16 @@ Mettre à jour le système.
|
|||
sudo apt-get update && sudo apt-get upgrade
|
||||
```
|
||||
|
||||
Vous pouvez accéder à votre vm via l’ip 192.168.33.80
|
||||
Vous pouvez accéder à votre vm via l’ip 192.168.33.10.
|
||||
|
||||
Les adresses IP sont assignées par défaut mais peuvent être changées dans les paramètres réseau du Vagrantfile.
|
||||
|
||||
---
|
||||
|
||||
*Une fois l’installation terminée, vous pouvez procéder à la post-installation : **[yunohost.org/postinstall](/postinstall_fr)** *
|
||||
|
||||
|
||||
## Image Wheezy avec les dépôts testing/unstable
|
||||
## Outils pour le développement
|
||||
|
||||
Si vous avez besoin d’une vm pour tester quelque chose avec wheezy ou la version testing/unstable de YunoHost. Il y a un Vagrantfile et cinq autres box en préparation. Pour le moment, vous pouvez construire les images en suivant les instructions sur ce [dépôt](https://github.com/zamentur/yunohost-vagrant).
|
||||
Si vous avez besoin d’une vm pour tester quelque chose, il vaut mieux utiliser directement [ynh-dev](https://github.com/yunohost/ynh-dev).
|
||||
|
||||
| Box | IP |
|
||||
| :---: | :---: |
|
||||
| stable8 | 192.168.33.80 |
|
||||
| testing8 | 192.168.33.81 |
|
||||
| unstable8 | 192.168.33.82 |
|
||||
| stable7 | 192.168.33.70 |
|
||||
| testing7 | 192.168.33.71 |
|
||||
| unstable7 | 192.168.33.72 |
|
||||
|
||||
Les adresses IP sont assignées par défaut mais peuvent être changées dans les paramètres réseau du Vagrantfile.
|
Loading…
Reference in a new issue