MigrationAppliEnvole4 » Historique » Version 4
Lionel Morin, 01/07/2013 16:56
| 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 | 4 | Lionel Morin | Une nouvelle organisation des dépot git est mise en place : |
| 5 | 1 | Lionel Morin | |
| 6 | 4 | Lionel Morin | |\2.upstream |\2.=> sources patchées |\2.=> master |=> packaging 2.3 |
| 7 | 4 | Lionel Morin | ||||=> packaging 2.4 |
| 8 | 4 | Lionel Morin | |
| 9 | 4 | Lionel Morin | * la branche _*upstream*_ ne contient que les sources originales de l'application |
| 10 | 4 | Lionel Morin | * la branche _*sources patchéees*_ contient les sources patchées pour envole (il y a possibilité de générer un paquet envole-<nom_appli>) |
| 11 | 4 | Lionel Morin | * la branche _*master*_ est commune en 2.3 et 2.4 et comporte, en plus des sources, tous les ajouts EOLE (templates, dicos, scripts, sql, password...) |
| 12 | 4 | Lionel Morin | * les branches de packaging, une par version |
| 13 | 1 | Lionel Morin | |
| 14 | 1 | Lionel Morin | h2. Modification des dicos |
| 15 | 1 | Lionel Morin | |
| 16 | 1 | Lionel Morin | Normalement il n'y a rien à changer. |
| 17 | 1 | Lionel Morin | |
| 18 | 1 | Lionel Morin | h2. Modification des templates |
| 19 | 1 | Lionel Morin | |
| 20 | 1 | Lionel Morin | Certaines variables souvent utilisées dans Envole ont changé de nom. |
| 21 | 1 | Lionel Morin | |
| 22 | 1 | Lionel Morin | |_.Nom en 2.3 |_.Nouveau nom en 2.4 | |
| 23 | 1 | Lionel Morin | |adresse_ip_annuaire |container_ip_annuaire | |
| 24 | 1 | Lionel Morin | |adresse_ip_fichier |container_ip_fichier | |
| 25 | 1 | Lionel Morin | |adresse_ip_mail |container_ip_mail | |
| 26 | 1 | Lionel Morin | |adresse_ip_mysql |container_ip_mysql | |
| 27 | 1 | Lionel Morin | |adresse_ip_web |container_ip_web | |
| 28 | 1 | Lionel Morin | |
| 29 | 3 | Lionel Morin | *=> Ces variables peuvent être rajoutées en 2.4 pour une rétro-compatibilité* |
| 30 | 1 | Lionel Morin | |
| 31 | 1 | Lionel Morin | h2. Modification des scripts shell |
| 32 | 2 | Lionel Morin | |
| 33 | 2 | Lionel Morin | h3. CreoleGet |
| 34 | 2 | Lionel Morin | |
| 35 | 2 | Lionel Morin | <pre> |
| 36 | 2 | Lionel Morin | .ParseDico |
| 37 | 2 | Lionel Morin | echo $mavariable |
| 38 | 2 | Lionel Morin | </pre> |
| 39 | 2 | Lionel Morin | est remplacé par : |
| 40 | 2 | Lionel Morin | <pre> |
| 41 | 2 | Lionel Morin | echo $(CreoleGet mavariable) |
| 42 | 2 | Lionel Morin | </pre> |
| 43 | 2 | Lionel Morin | |
| 44 | 2 | Lionel Morin | ATTENTION : à ce jour, pour accéder à une variable esclave, il faut connaître la variable maître : |
| 45 | 2 | Lionel Morin | <pre> |
| 46 | 1 | Lionel Morin | echo $(CreoleGet lamaster.lesclave) |
| 47 | 1 | Lionel Morin | </pre> |
| 48 | 2 | Lionel Morin | |
| 49 | 3 | Lionel Morin | *=> Il est possible de tester la présence de ParseDico avant de le lancer (en shell type -p)* |
| 50 | 3 | Lionel Morin | |
| 51 | 2 | Lionel Morin | h3. CreoleRun |
| 52 | 2 | Lionel Morin | |
| 53 | 2 | Lionel Morin | <pre> |
| 54 | 2 | Lionel Morin | ./usr/share/eole/FonctionsEoleNg |
| 55 | 2 | Lionel Morin | RunCmd "ma -commande" conteneur |
| 56 | 2 | Lionel Morin | </pre> |
| 57 | 2 | Lionel Morin | est remplacé par : |
| 58 | 1 | Lionel Morin | <pre> |
| 59 | 1 | Lionel Morin | CreoleRun "ma -commande" conteneur |
| 60 | 2 | Lionel Morin | </pre> |
| 61 | 3 | Lionel Morin | |
| 62 | 3 | Lionel Morin | *=> Il est possible d'émuler la commande RunCmd en 2.4* |
| 63 | 2 | Lionel Morin | |
| 64 | 2 | Lionel Morin | h2. Problèmes spécifiques |
| 65 | 2 | Lionel Morin | |
| 66 | 2 | Lionel Morin | h3. Problème de connexion aux bases MySQL #5633 |
| 67 | 2 | Lionel Morin | |
| 68 | 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). |