MigrationAppliEnvole4 » Historique » Version 9
Lionel Morin, 02/07/2013 09:57
| 1 | 1 | Lionel Morin | h1. Migration d'une application Envole vers la version EOLE 2.4 (ébauche) |
|---|---|---|---|
| 2 | 1 | Lionel Morin | |
| 3 | 3 | Lionel Morin | Pour faciliter le travail de packaging, il est nécessaire de [[eole-skeletor:Doc-geting-started| "skeletoriser"]] le dépot 2.3 pour le [[eole:EoleDebianPackaging24| transformer en dépot 2.4]]. |
| 4 | 5 | Lionel Morin | |
| 5 | 9 | Lionel Morin | Ensuite, une nouvelle organisation globale des dépots git pour Envole est mise en place et sera commune pour 2.3 et 2.4: |
| 6 | 1 | Lionel Morin | |
| 7 | 8 | Lionel Morin | |_.Sources originales |_.Sources modifiées pour Envole |_.Ajouts EOLE |_.Packaging | |
| 8 | 8 | Lionel Morin | |/2=.upstream |/2=.=> sources patchées |/2=.=> master |=> packaging 2.3| |
| 9 | 8 | Lionel Morin | | => packaging 2.4| |
| 10 | 4 | Lionel Morin | |
| 11 | 4 | Lionel Morin | * la branche _*upstream*_ ne contient que les sources originales de l'application |
| 12 | 6 | Lionel Morin | * la branche _*sources patchéees*_ contient les sources patchées pour envole (il y a ici possibilité de générer un paquet envole-<nom_appli>) |
| 13 | 6 | Lionel Morin | * la branche _*master*_ est commune en 2.3 et 2.4 (sous réserve de rester compatible) et comporte, en plus des sources, tous les ajouts EOLE (templates, dicos, scripts, sql, password...) |
| 14 | 6 | Lionel Morin | * les branches de *_packaging_*, une par version |
| 15 | 1 | Lionel Morin | |
| 16 | 1 | Lionel Morin | h2. Modification des dicos |
| 17 | 1 | Lionel Morin | |
| 18 | 1 | Lionel Morin | Normalement il n'y a rien à changer. |
| 19 | 1 | Lionel Morin | |
| 20 | 1 | Lionel Morin | h2. Modification des templates |
| 21 | 1 | Lionel Morin | |
| 22 | 1 | Lionel Morin | Certaines variables souvent utilisées dans Envole ont changé de nom. |
| 23 | 1 | Lionel Morin | |
| 24 | 1 | Lionel Morin | |_.Nom en 2.3 |_.Nouveau nom en 2.4 | |
| 25 | 1 | Lionel Morin | |adresse_ip_annuaire |container_ip_annuaire | |
| 26 | 1 | Lionel Morin | |adresse_ip_fichier |container_ip_fichier | |
| 27 | 1 | Lionel Morin | |adresse_ip_mail |container_ip_mail | |
| 28 | 1 | Lionel Morin | |adresse_ip_mysql |container_ip_mysql | |
| 29 | 1 | Lionel Morin | |adresse_ip_web |container_ip_web | |
| 30 | 1 | Lionel Morin | |
| 31 | 3 | Lionel Morin | *=> Ces variables peuvent être rajoutées en 2.4 pour une rétro-compatibilité* |
| 32 | 1 | Lionel Morin | |
| 33 | 1 | Lionel Morin | h2. Modification des scripts shell |
| 34 | 2 | Lionel Morin | |
| 35 | 2 | Lionel Morin | h3. CreoleGet |
| 36 | 2 | Lionel Morin | |
| 37 | 2 | Lionel Morin | <pre> |
| 38 | 2 | Lionel Morin | .ParseDico |
| 39 | 2 | Lionel Morin | echo $mavariable |
| 40 | 2 | Lionel Morin | </pre> |
| 41 | 2 | Lionel Morin | est remplacé par : |
| 42 | 2 | Lionel Morin | <pre> |
| 43 | 2 | Lionel Morin | echo $(CreoleGet mavariable) |
| 44 | 2 | Lionel Morin | </pre> |
| 45 | 2 | Lionel Morin | |
| 46 | 2 | Lionel Morin | ATTENTION : à ce jour, pour accéder à une variable esclave, il faut connaître la variable maître : |
| 47 | 2 | Lionel Morin | <pre> |
| 48 | 1 | Lionel Morin | echo $(CreoleGet lamaster.lesclave) |
| 49 | 1 | Lionel Morin | </pre> |
| 50 | 2 | Lionel Morin | |
| 51 | 3 | Lionel Morin | *=> Il est possible de tester la présence de ParseDico avant de le lancer (en shell type -p)* |
| 52 | 3 | Lionel Morin | |
| 53 | 7 | Lionel Morin | Code non testé, à confirmer : |
| 54 | 7 | Lionel Morin | <pre> |
| 55 | 7 | Lionel Morin | if type -p ParseDico 2> /dev/null; then |
| 56 | 7 | Lionel Morin | .ParseDico |
| 57 | 7 | Lionel Morin | fi |
| 58 | 7 | Lionel Morin | </pre> |
| 59 | 7 | Lionel Morin | |
| 60 | 2 | Lionel Morin | h3. CreoleRun |
| 61 | 2 | Lionel Morin | |
| 62 | 2 | Lionel Morin | <pre> |
| 63 | 2 | Lionel Morin | ./usr/share/eole/FonctionsEoleNg |
| 64 | 2 | Lionel Morin | RunCmd "ma -commande" conteneur |
| 65 | 2 | Lionel Morin | </pre> |
| 66 | 2 | Lionel Morin | est remplacé par : |
| 67 | 1 | Lionel Morin | <pre> |
| 68 | 1 | Lionel Morin | CreoleRun "ma -commande" conteneur |
| 69 | 2 | Lionel Morin | </pre> |
| 70 | 3 | Lionel Morin | |
| 71 | 3 | Lionel Morin | *=> Il est possible d'émuler la commande RunCmd en 2.4* |
| 72 | 2 | Lionel Morin | |
| 73 | 2 | Lionel Morin | h2. Problèmes spécifiques |
| 74 | 2 | Lionel Morin | |
| 75 | 2 | Lionel Morin | h3. Problème de connexion aux bases MySQL #5633 |
| 76 | 2 | Lionel Morin | |
| 77 | 2 | Lionel Morin | Pour y remédier temporairement, on peut mettre "localhost" à la place de "127.0.0.1" (penser à la fois aux fichiers sql et aux fichiers de config php). |