mirror of
https://github.com/YunoHost/doc.git
synced 2024-09-03 20:06:26 +02:00
[fix] clean dev_fr, more visible link for trap.
- clean dev page: - remove docker bullshit - remove useless Fedora dependency - more visible link to trap page
This commit is contained in:
parent
dcf279396e
commit
6908cb9c5a
2 changed files with 4 additions and 8 deletions
10
dev_fr.md
10
dev_fr.md
|
@ -4,13 +4,13 @@ Ce document a pour but de donner les clés pour créer un environnement de déve
|
||||||
|
|
||||||
### Installation de l’environnement de développement
|
### Installation de l’environnement de développement
|
||||||
#### Installation du système de virtualisation
|
#### Installation du système de virtualisation
|
||||||
Installer, avec le gestionnaire de paquet de votre système d’exploitation, Vagrant ou Docker suivant celui que vous souhaitez utiliser.
|
Installer, avec le gestionnaire de paquet de votre système d’exploitation, Vagrant.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Debian, Ubuntu, Mint
|
# Debian, Ubuntu, Mint
|
||||||
sudo apt-get install docker vagrant
|
sudo apt-get install vagrant
|
||||||
# Fedora
|
# Fedora
|
||||||
sudo dnf install docker vagrant vagrant-libvirt
|
sudo dnf install vagrant
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Télécharger `ynh-dev`
|
#### Télécharger `ynh-dev`
|
||||||
|
@ -65,10 +65,6 @@ root@yunohost:/yunohost/# ./ynh-dev deploy
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
##### Lancer la postinstall
|
##### Lancer la postinstall
|
||||||
Avec Docker
|
|
||||||
```bash
|
|
||||||
root@yunohost:/yunohost/# postinstall
|
|
||||||
```
|
|
||||||
Avec VirtualBox/Vagrant
|
Avec VirtualBox/Vagrant
|
||||||
```bash
|
```bash
|
||||||
root@yunohost:/yunohost/# yunohost tools postinstall
|
root@yunohost:/yunohost/# yunohost tools postinstall
|
||||||
|
|
|
@ -66,7 +66,7 @@ yunohost app install https://github.com/author/my_app_package.git
|
||||||
### Enhance package
|
### Enhance package
|
||||||
Here is a list of best practices for application install scripts :
|
Here is a list of best practices for application install scripts :
|
||||||
* scripts should use `sudo cp -a ../sources/. $final_path` instead of `sudo cp -a ../sources/* $final_path`;
|
* scripts should use `sudo cp -a ../sources/. $final_path` instead of `sudo cp -a ../sources/* $final_path`;
|
||||||
* install script must contain support in case of script errors to delete residuals files thanks to `set -e` and [`trap`](packaging_apps_trap_fr);
|
* install script must contain support in case of script errors to delete residuals files thanks to `set -e` and [trap](packaging_apps_trap_fr);
|
||||||
* install script should use command line method instead of curl call through web install form;
|
* install script should use command line method instead of curl call through web install form;
|
||||||
* install script should save install answers;
|
* install script should save install answers;
|
||||||
* application sources should be checked with a control sum (sha256, sha1 or md5) or a PGP signature;
|
* application sources should be checked with a control sum (sha256, sha1 or md5) or a PGP signature;
|
||||||
|
|
Loading…
Add table
Reference in a new issue