This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository echobase. See http://git.codelutin.com/echobase.git commit ee4029f4a999dab04ca0185b13e062d6ee4ebaeb Author: Tony CHEMIT <chemit@codelutin.com> Date: Wed Jan 14 15:03:56 2015 +0100 refs-50 #6462 Amélioration de la documentation d'installation --- echobase-ui/pom.xml | 67 ++++++++++++++++------------------------- pom.xml | 3 ++ src/site/rst/install.rst.vm | 73 ++++++++++++++++++++++++--------------------- 3 files changed, 67 insertions(+), 76 deletions(-) diff --git a/echobase-ui/pom.xml b/echobase-ui/pom.xml index 873b59a..e8b4406 100644 --- a/echobase-ui/pom.xml +++ b/echobase-ui/pom.xml @@ -26,8 +26,8 @@ <env>dev</env> - <fullWarName>echobase-full-${project.version}</fullWarName> - <lizmapZipName>echobase-lizmap-${project.version}</lizmapZipName> + <fullWarName>echobase-ui-${project.version}-full</fullWarName> + <lizmapZipName>echobase-ui-${project.version}-lizmap</lizmapZipName> <!-- deploy configuration --> <deployFiles>${project.build.directory}/${fullWarName}.war</deployFiles> @@ -516,7 +516,6 @@ <plugin> <artifactId>maven-assembly-plugin</artifactId> - <executions> <execution> <id>create-embedded-zip</id> @@ -567,6 +566,28 @@ </execution> </executions> </plugin> + + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <executions> + <execution> + <id>attach-lizmap-zip</id> + <goals> + <goal>attach-artifact</goal> + </goals> + <configuration> + <artifacts> + <artifact> + <file>${project.build.directory}/${lizmapZipName}.zip</file> + <type>zip</type> + <classifier>lizmap</classifier> + </artifact> + </artifacts> + </configuration> + </execution> + </executions> + </plugin> </plugins> </build> </profile> @@ -587,10 +608,6 @@ <plugin> <artifactId>maven-assembly-plugin</artifactId> - <configuration> - <appendAssemblyId>false</appendAssemblyId> - <attach>false</attach> - </configuration> <executions> <execution> <id>create-full-war</id> @@ -603,7 +620,6 @@ <descriptor>src/main/assembly/full-war.xml</descriptor> </descriptors> <finalName>${fullWarName}</finalName> - <attach>true</attach> </configuration> </execution> </executions> @@ -611,9 +627,9 @@ <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> - <version>1.9.1</version> <executions> <execution> + <id>attach-full-war</id> <goals> <goal>attach-artifact</goal> </goals> @@ -633,38 +649,5 @@ </build> </profile> - <!--profile> - <id>add-log-to-jetty</id> - <activation> - <file> - <exists>/var/local/echobase</exists> - </file> - </activation> - - <build> - - <pluginManagement> - <plugins> - <plugin> - <groupId>org.mortbay.jetty</groupId> - <artifactId>jetty-maven-plugin</artifactId> - <configuration> - <stopKey>A</stopKey> - <stopPort>1269</stopPort> - <systemProperties> - <systemProperty> - <name>echobase.data.dir</name> - <value>/var/local/echobase</value> - </systemProperty> - </systemProperties> - </configuration> - </plugin> - </plugins> - </pluginManagement> - - </build> - - </profile--> - </profiles> </project> diff --git a/pom.xml b/pom.xml index 3f1b98d..0def6ba 100644 --- a/pom.xml +++ b/pom.xml @@ -176,6 +176,9 @@ <!-- name of embedded war file basename --> <embeddedWarName>echobase-embedded-${project.version}</embeddedWarName> + <!-- Lizmap version --> + <lizmapVersion>2.9.4</lizmapVersion> + </properties> <dependencyManagement> diff --git a/src/site/rst/install.rst.vm b/src/site/rst/install.rst.vm index 529b579..e7bebac 100644 --- a/src/site/rst/install.rst.vm +++ b/src/site/rst/install.rst.vm @@ -75,28 +75,17 @@ que le répertoire **/var/lib/tomcat7** existe. Toutes les données de l'application seront placées dans le répertoire **/var/local/echobase** -- Créer les répertoires - :: mkdir /var/local/echobase - mkdir /var/local/echobase/war - -- Placer le war *echobase-full-${project.version}.war* à utiliser dans **/var/local/echobase/war** -- Ajouter un lien symoblique vers le war à utiliser - -:: - - ln -s /var/local/echobase/war/echobase-full-${project.version}.war /var/local/echobase/echobase.war - -- Ajouter l'application dans tomcat - -:: - + mkdir -p /var/local/echobase/war + cd /var/local/echobase/war + wget http://nexus.nuiton.org/nexus/content/repositories/other-releases/fr/ifremer/echobase/echobase-ui/${project.version}/echobase-ui-${project.version}-full.war + ln -s /var/local/echobase/war/echobase-ui-${project.version}-full.war /var/local/echobase/echobase.war cp /var/local/echobase/echobase.war /var/lib/tomcat7/webapps + chown -R tomcat. . -L'application est bien déployée lorsque vous pouvez accéder à l'application à -l'adresse suivante : +L'application est bien déployée lorsque vous pouvez accéder à l'application à l'adresse suivante : :: http://localhost:8080/echobase @@ -115,19 +104,19 @@ Une fois l'application déployée, vous aurez la structure de répertoires suiva | | `-- postgresql-${postgresqlVersion}.jar | |-- logs | | `-- echobase.log - | `-- lizmap + | `-- gis | |-- resources | | |-- France&Spain.shp | | |-- pelgas09.shp | | `-- ... | |-- projects | `-- templates - | |-- QgisTemplate.qgs - | |-- LizmapTemplate.qgs.cfg + | |-- EchoBaseLizmapTemplate.qgs.cfg + | |-- EchoBaseQGisTemplate.qgs | `-- ... |-- echobase.war `-- war - `-- echobase-full-${project.version}.war + `-- echobase-ui-${project.version}-full.war Mettre à jour le war de l'application @@ -152,18 +141,14 @@ Pour utiliser une nouvelle version de l'application, c'est très simple. - Attendre que le répertoire **/var/lib/tomcat7/webapps/echobase** a bien été supprimé. -- Placer le war *echobase-full-${project.version}.war* à utiliser dans **/var/local/echobase/war** -- Changer le lien symbolique **/var/local/echobase/echobase.war** +- Mettre l'application dans tomcat : :: + cd /var/local/echobase/war + wget http://nexus.nuiton.org/nexus/content/repositories/other-releases/fr/ifremer/echobase/echobase-ui/${project.version}/echobase-ui-${project.version}-full.war unlink /var/local/echobase/echobase.war - ln -s /var/local/echobase/war/echobase-full-${project.version}.war /var/local/echobase/echobase.war - -- Mettre l'application dans tomcat - -:: - + ln -s /var/local/echobase/war/echobase-ui-${project.version}-full.war /var/local/echobase/echobase.war cp /var/local/echobase/echobase.war /var/lib/tomcat7/webapps Tomcat va redéployer l'application et elle sera disponible d'ici peu à l'adresse @@ -210,17 +195,37 @@ EchoBase utilise `Qgis map server`_ et `Lizmap`_ pour la visualisation des donn Qgis map server ~~~~~~~~~~~~~~~ -Pour installer Qgis map server, suivez `le guide d'installation Qgis map server <http://hub.qgis.org/projects/quantum-gis/wiki/QGIS_Server_Tutorial#Webserver-configuration>`_. +Pour installer Qgis map server : + +:: + + apt-get install qgis-server libapache2-mod-fcgid + a2enmod cgid + service apache2 restart Lizmap ~~~~~~ -Pour installer Lizmap, suivez `le guide d'installation Lizmap <http://docs.3liz.com/fr/lizmap-web-client/installation/linux.html>`_. +Nous utilisons pour le moment la version ${lizmapVersion}. + +Installation Lizmap:: + + cd /var/www/ + VERSION=${lizmapVersion} + wget https://github.com/3liz/lizmap-web-client/archive/$VERSION.zip + unzip $VERSION.zip + rm $VERSION.zip + +On obtient alors un répertoire **lizmap-web-client-${lizmapVersion}**. -Il faut ensuite installer le style adapté pour EchoBase. +Il faut ensuite installer le style adapté pour EchoBase:: -1. Télécharger le fichier **echobase-lizmap-${project.version}.zip** sur le forge (https://forge.codelutin.com/projects/echobase/files) -2. Extraire ce fichier dans le répertoire d'installation de lizmap (par défaut **/var/www/lizmap-web-client-xxx/lizmap/**). + cd /var/www/lizmap-web-client-${lizmapVersion}/lizmap + wget http://nexus.nuiton.org/nexus/content/repositories/other-releases/fr/ifremer/echobase/echobase-ui/${project.version}/echobase-ui-${project.version}-lizmap.zip + unzip echobase-ui-${project.version}-lizmap.zip + rm -rf echobase-ui-${project.version}-lizmap.zip + cd .. + chown -R o+wr . Configuration des répertoires ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.