mirror of
https://github.com/YunoHost/doc.git
synced 2024-09-03 20:06:26 +02:00
Add Vagrant install
This commit is contained in:
parent
061ee7d289
commit
6667437a6c
4 changed files with 154 additions and 2 deletions
|
@ -55,11 +55,14 @@ This page lists few installation guides.
|
||||||
<a href="/install_on_virtualbox"><img src="https://yunohost.org/images/virtualbox.png" height=150 style="vertical-align:bottom"><b><p>On VirtualBox</p></b></a>
|
<a href="/install_on_virtualbox"><img src="https://yunohost.org/images/virtualbox.png" height=150 style="vertical-align:bottom"><b><p>On VirtualBox</p></b></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="col col-md-3 text-center">
|
<div class="col col-md-3 text-center">
|
||||||
<a href="/docker"><img src="https://yunohost.org/images/docker.png" height=150 style="vertical-align:bottom"><b><p>On Docker</p></b></a>
|
<a href="/docker"><img src="https://yunohost.org/images/docker.png" height=150 style="vertical-align:bottom"><b><p>On Docker</p></b></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="col col-md-3 text-center">
|
||||||
|
<a href="/vagrant"><img src="https://yunohost.org/images/vagrant.png" height=150 style="vertical-align:bottom"><b><p>On Vagrant</p></b></a>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
|
@ -55,11 +55,14 @@ Cette page liste plusieurs types d'installations, classés par catégorie.
|
||||||
<a href="/install_on_virtualbox_fr"><img src="https://yunohost.org/images/virtualbox.png" height=150 style="vertical-align:bottom"><b><p>Sur VirtualBox</p></b></a>
|
<a href="/install_on_virtualbox_fr"><img src="https://yunohost.org/images/virtualbox.png" height=150 style="vertical-align:bottom"><b><p>Sur VirtualBox</p></b></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="col col-md-3 text-center">
|
<div class="col col-md-3 text-center">
|
||||||
<a href="/docker_fr"><img src="https://yunohost.org/images/docker.png" height=150 style="vertical-align:bottom"><b><p>Sur Docker</p></b></a>
|
<a href="/docker_fr"><img src="https://yunohost.org/images/docker.png" height=150 style="vertical-align:bottom"><b><p>Sur Docker</p></b></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="col col-md-3 text-center">
|
||||||
|
<a href="/vagrant_fr"><img src="https://yunohost.org/images/vagrant.png" height=150 style="vertical-align:bottom"><b><p>Sur Vagrant</p></b></a>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
73
vagrant.md
Normal file
73
vagrant.md
Normal file
|
@ -0,0 +1,73 @@
|
||||||
|
# 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="https://yunohost.org/images/vagrant.png" width=250>
|
||||||
|
|
||||||
|
**Prérequis** : An x86 computer with VirtualBox installed and enough RAM capacity to be able to run a small virtual machine.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Initialisation
|
||||||
|
|
||||||
|
Create a project folder
|
||||||
|
```bash
|
||||||
|
mkdir YunoHost
|
||||||
|
cd YunoHost
|
||||||
|
```
|
||||||
|
|
||||||
|
The following command will initialize the project with a Debian Wheezy base image
|
||||||
|
```bash
|
||||||
|
vagrant init chef/debian-7.4
|
||||||
|
```
|
||||||
|
|
||||||
|
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
|
||||||
|
```bash
|
||||||
|
git clone https://github.com/YunoHost/install_script
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
Start the virtual machine
|
||||||
|
```bash
|
||||||
|
vagrant up
|
||||||
|
```
|
||||||
|
|
||||||
|
Connecter to the started virtual machine
|
||||||
|
```bash
|
||||||
|
vagrant ssh
|
||||||
|
```
|
||||||
|
|
||||||
|
The root user must have a password
|
||||||
|
```bash
|
||||||
|
sudo passwd
|
||||||
|
```
|
||||||
|
|
||||||
|
Upgrade the system
|
||||||
|
```bash
|
||||||
|
sudo apt-get update && sudo apt-get upgrade
|
||||||
|
```
|
||||||
|
|
||||||
|
Execute the installation script
|
||||||
|
```bash
|
||||||
|
cd /vagrant/install_script && sudo ./install_yunohostv2
|
||||||
|
```
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<p class="text-center">
|
||||||
|
<img src="https://yunohost.org/images/install_script.png">
|
||||||
|
</p>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
*Once the installation is finished, you may want to proceed to post-installation: **[yunohost.org/postinstall](/postinstall)** *
|
73
vagrant_fr.md
Normal file
73
vagrant_fr.md
Normal file
|
@ -0,0 +1,73 @@
|
||||||
|
# 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="https://yunohost.org/images/vagrant.png" width=250>
|
||||||
|
|
||||||
|
**Prérequis** : Un ordinateur x86 avec VirtualBox installé et assez de RAM disponible pour lancer une petite machine virtuelle.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Initialisation
|
||||||
|
|
||||||
|
Créer un dossier pour le projet
|
||||||
|
```bash
|
||||||
|
mkdir YunoHost
|
||||||
|
cd YunoHost
|
||||||
|
```
|
||||||
|
|
||||||
|
La commande suivante va initialiser le projet avec un image Debian Wheezy de base
|
||||||
|
```bash
|
||||||
|
vagrant init chef/debian-7.4
|
||||||
|
```
|
||||||
|
|
||||||
|
Décommenter (Supprimer le # devant la ligne) la ligne suivante dans le fichier Vagrantfile nouvellement créé afin d'avoir un accès depuis le système hôte
|
||||||
|
```
|
||||||
|
config.vm.network "private_network", ip: "192.168.33.10"
|
||||||
|
```
|
||||||
|
|
||||||
|
Clonez le dépôt du script d'installation de YunoHost
|
||||||
|
```bash
|
||||||
|
git clone https://github.com/YunoHost/install_script
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
Démarrer la machine virtuelle
|
||||||
|
```bash
|
||||||
|
vagrant up
|
||||||
|
```
|
||||||
|
|
||||||
|
Se connecter à la machine virtuelle démarrée
|
||||||
|
```bash
|
||||||
|
vagrant ssh
|
||||||
|
```
|
||||||
|
|
||||||
|
Il est nécessaire de donner un mot de passe à l'utilisateur root
|
||||||
|
```bash
|
||||||
|
sudo passwd
|
||||||
|
```
|
||||||
|
|
||||||
|
Mettre à jour le système.
|
||||||
|
```bash
|
||||||
|
sudo apt-get update && sudo apt-get upgrade
|
||||||
|
```
|
||||||
|
|
||||||
|
Lancez le script d'installation
|
||||||
|
```bash
|
||||||
|
cd /vagrant/install_script && sudo ./install_yunohostv2
|
||||||
|
```
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<p class="text-center">
|
||||||
|
<img src="https://yunohost.org/images/install_script.png">
|
||||||
|
</p>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
*Une fois l'installation terminée, vous pouvez procéder à la post-installation : **[yunohost.org/postinstall](/postinstall_fr)** *
|
Loading…
Add table
Reference in a new issue