Wiki » Historique » Version 33
Patrice Nadeau, 2014-08-19 20:49
| 1 | 13 | Patrice Nadeau | %{font-size:18pt}Redmine% |
|---|---|---|---|
| 2 | |||
| 3 | 30 | Patrice Nadeau | > Merge du fichier PDF : issue:#13 |
| 4 | 25 | Patrice Nadeau | |
| 5 | 13 | Patrice Nadeau | --- |
| 6 | |||
| 7 | 1 | Patrice Nadeau | {{toc}} |
| 8 | |||
| 9 | 13 | Patrice Nadeau | h1. Redmine |
| 10 | 6 | Patrice Nadeau | |
| 11 | 31 | Patrice Nadeau | Logiciel de gestion de projets, sources, bugs et timeline. |
| 12 | Contient un module de Wiki, de fichiers. |
||
| 13 | Supporte aussi les systèmes de version de fichier (Git, SVN entre autre). |
||
| 14 | Disponible à http://www.redmine.org/projects/redmine/wiki/Download |
||
| 15 | |||
| 16 | De base, ne fonctionne pas avec Apache |
||
| 17 | Pour une solution possible, voir : http://www.redmine.org/projects/redmine/wiki/HowTo_configure_Apache_to_run_Redmine |
||
| 18 | |||
| 19 | Sa principale difficulté d’installation et sa dépendance à Ruby. D’où le but de ce guide. |
||
| 20 | Voir aussi : |
||
| 21 | * http://bitnami.com/stack/redmine |
||
| 22 | * http://www.turnkeylinux.org/redmine |
||
| 23 | |||
| 24 | 6 | Patrice Nadeau | h1. Installation |
| 25 | |||
| 26 | 32 | Patrice Nadeau | Ce guide documente une installation GNU/Linux avec les version suivantes : |
| 27 | * openSUSE 13.1 |
||
| 28 | * Redmine 2.4.2 |
||
| 29 | |||
| 30 | 1 | Patrice Nadeau | h2. Prérequis |
| 31 | |||
| 32 | 32 | Patrice Nadeau | Un serveur LAMP openSUSE |
| 33 | |||
| 34 | Les logiciels suivants : |
||
| 35 | |||
| 36 | * libmysqlclient-devel |
||
| 37 | * mysql-community-server |
||
| 38 | * ruby-2.0 |
||
| 39 | * ruby20-devel |
||
| 40 | * rubygem-bundler |
||
| 41 | * rubygem-mysql2 |
||
| 42 | * rubygem-pg |
||
| 43 | * ImageMagick |
||
| 44 | * ImageMagick-devel |
||
| 45 | * git |
||
| 46 | * gcc |
||
| 47 | * make |
||
| 48 | |||
| 49 | h2. MySQL |
||
| 50 | |||
| 51 | Ajout au démarrage automatique et démarrage du service : |
||
| 52 | <pre><code class="bash"> |
||
| 53 | chkconfig -a mysql |
||
| 54 | rcmysql start |
||
| 55 | </code></pre> |
||
| 56 | |||
| 57 | Création de la base de donnés. |
||
| 58 | Substituer les items suivants à votre choix : |
||
| 59 | * redmine : Usager pour la base de donnés. |
||
| 60 | * password : Mot de passe de la base de donnees. |
||
| 61 | * db : Nom de la base de donnés. |
||
| 62 | |||
| 63 | Lancer MySQL : |
||
| 64 | <pre><code class="bash"> |
||
| 65 | mysql -u root -p |
||
| 66 | </code></pre> |
||
| 67 | |||
| 68 | Commandes MySQL : |
||
| 69 | <pre><code class="sql"> |
||
| 70 | create database db character set utf8; |
||
| 71 | create user 'redmine'@'localhost' identified by 'password'; |
||
| 72 | grant all privileges on db.* to 'redmine'@'localhost'; |
||
| 73 | commit; |
||
| 74 | quit; |
||
| 75 | </code></pre> |
||
| 76 | |||
| 77 | 33 | Patrice Nadeau | h2. Redmine |
| 78 | 13 | Patrice Nadeau | |
| 79 | 33 | Patrice Nadeau | L’installation sera faite dans _\srv\redmine_ |
| 80 | <pre><code class="bash"> |
||
| 81 | cd /srv/ |
||
| 82 | svn co http://svn.redmine.org/redmine/branches/2.4-stable redmine |
||
| 83 | cd redmine |
||
| 84 | cp config/database.yml.example config/database.yml |
||
| 85 | cp config/configuration.yml.example config/configuration.yml |
||
| 86 | mkdir public/plugin_assets |
||
| 87 | </code></pre> |
||
| 88 | |||
| 89 | Si un usager MySQL autre que _root_ ou mot de passe diffèrent est utilisé : |
||
| 90 | Éditer le fichier *config/database.yml*, section *Production* et modifier les lignes : |
||
| 91 | * *username* |
||
| 92 | * *password* |
||
| 93 | |||
| 94 | Éditer le fichier _config/configuration.yml_ et modifier la configuration SMTP. |
||
| 95 | |||
| 96 | h2. Ruby |
||
| 97 | |||
| 98 | 15 | Patrice Nadeau | No root pour la commande |
| 99 | <pre><code class="bash"> |
||
| 100 | bundle install |
||
| 101 | </code></pre> |
||
| 102 | 16 | Patrice Nadeau | |
| 103 | 29 | Patrice Nadeau | h1. Personnalisation |
| 104 | 8 | Patrice Nadeau | |
| 105 | 1 | Patrice Nadeau | h2. Plugins |
| 106 | |||
| 107 | 4 | Patrice Nadeau | h3. Redmine Rouge |
| 108 | 12 | Patrice Nadeau | |
| 109 | 1 | Patrice Nadeau | Permet le support de langage supplémentaire pour l'affichage de la syntaxe d'un code source. |
| 110 | 4 | Patrice Nadeau | |
| 111 | 13 | Patrice Nadeau | "Langage supporté":http://rouge.jayferd.us/demo |
| 112 | 1 | Patrice Nadeau | |
| 113 | https://github.com/ngyuki/redmine_rouge |
||
| 114 | |||
| 115 | <pre> |
||
| 116 | <code class="bash"> |
||
| 117 | cd /srv/redmine/plugins |
||
| 118 | git clone https://github.com/ngyuki/redmine_rouge.git |
||
| 119 | cd .. |
||
| 120 | bundle install |
||
| 121 | 2 | Patrice Nadeau | # Relancer redmine |
| 122 | rcredmine restart |
||
| 123 | 1 | Patrice Nadeau | </code> |
| 124 | </pre> |
||
| 125 | 5 | Patrice Nadeau | |
| 126 | 22 | Patrice Nadeau | h3. Code Highlight |
| 127 | 9 | Patrice Nadeau | |
| 128 | 10 | Patrice Nadeau | http://www.redmine.org/plugins/codehightlight_button |
| 129 | 9 | Patrice Nadeau | |
| 130 | Bouton permettant de sélectionner du code et d'activer la syntaxe selon un langage. |
||
| 131 | 11 | Patrice Nadeau | >Ne fonctionne pas pour les langages supplémentaires supportées par le « plug-in » _Redmine Rouge_. Voir "ici":https://github.com/mediatainment/redmine_codebutton/issues/2 |
| 132 | 9 | Patrice Nadeau | |
| 133 | 1 | Patrice Nadeau | Installation |
| 134 | <pre><code class="bash"> |
||
| 135 | 10 | Patrice Nadeau | cd /srv/redmine/plugins |
| 136 | git clone https://github.com/mediatainment/redmine_codebutton.git |
||
| 137 | cd .. |
||
| 138 | rake redmine:plugins |
||
| 139 | 9 | Patrice Nadeau | rake redmine:plugins:migrate RAILS_ENV=production |
| 140 | 10 | Patrice Nadeau | # Relancer Redmine |
| 141 | 1 | Patrice Nadeau | rcredmine restart |
| 142 | </code></pre> |
||
| 143 | 11 | Patrice Nadeau | |
| 144 | 23 | Patrice Nadeau | h3. Redmine Issue Checklist |
| 145 | 11 | Patrice Nadeau | |
| 146 | Extends issues to store checklist items |
||
| 147 | |||
| 148 | http://redminecrm.com/projects/checklist |
||
| 149 | |||
| 150 | Installation |
||
| 151 | <pre><code class="bash"> |
||
| 152 | cd /srv/redmine/plugins |
||
| 153 | wget http://redminecrm.com/license_manager/4200/redmine_issue_checklist-2_0_5.zip |
||
| 154 | unzip redmine_issue_checklist-2_0_5.zip |
||
| 155 | bundle exec rake redmine:plugins NAME=redmine_issue_checklist RAILS_ENV=production |
||
| 156 | # Relancer Redmine |
||
| 157 | rcredmine restart |
||
| 158 | </code></pre> |
||
| 159 | |||
| 160 | Configuration |
||
| 161 | Dans *Administration* |
||
| 162 | * *Plugins* |
||
| 163 | ** Choisir les options voulues |
||
| 164 | * *Roles and permissions* |
||
| 165 | ** Choisir le rôle |
||
| 166 | Donner les droits voulus sur : |
||
| 167 | *** Done checklist items |
||
| 168 | *** Edit checklist items |
||
| 169 | 14 | Patrice Nadeau | *** View checklist |
| 170 | 1 | Patrice Nadeau | |
| 171 | 24 | Patrice Nadeau | h3. Redmine People |
| 172 | |||
| 173 | 29 | Patrice Nadeau | > A faire |
| 174 | 24 | Patrice Nadeau | |
| 175 | 20 | Patrice Nadeau | h3. WikiNG |
| 176 | 1 | Patrice Nadeau | |
| 177 | 20 | Patrice Nadeau | Personnalisation des items dans le wiki. |
| 178 | 28 | Patrice Nadeau | Ajoute des boutons et des icônes comme FIXME et TODO. |
| 179 | 29 | Patrice Nadeau | > « Écrase » le bouton installé par _Code Highlight_ |
| 180 | 21 | Patrice Nadeau | |
| 181 | Installation |
||
| 182 | 27 | Patrice Nadeau | <pre><code class="bash"> |
| 183 | 26 | Patrice Nadeau | cd /srv/redmine |
| 184 | wget http://projects.andriylesyuk.com/attachments/download/564/wiking-1.0.0b.tar.bz2 |
||
| 185 | tar xvf wiking-1.0.0b.tar.bz2 |
||
| 186 | mv wiking plugins |
||
| 187 | rake redmine:plugins:migrate RAILS_ENV=production |
||
| 188 | # restart Redmine |
||
| 189 | rcredmine restart |
||
| 190 | </code></pre> |
||
| 191 | 20 | Patrice Nadeau | |
| 192 | 14 | Patrice Nadeau | h1. Mise à jour |
| 193 | 1 | Patrice Nadeau | |
| 194 | 14 | Patrice Nadeau | S’assurer d'avoir les dernières versions des plugins. |
| 195 | 9 | Patrice Nadeau | |
| 196 | 14 | Patrice Nadeau | h1. Copie de sécurité |
| 197 | 5 | Patrice Nadeau | |
| 198 | <pre> <code class="bash"> |
||
| 199 | #!/bin/bash |
||
| 200 | # |
||
| 201 | # backup_redmine.sh |
||
| 202 | # Backup of a Redmine setup |
||
| 203 | # Last Changes: 2013-02-23 |
||
| 204 | # Maintainer: Patrice Nadeau <patricen@telwarwick.net> |
||
| 205 | |||
| 206 | # TODO Verify the results (folder exist, enough disk pace , etc..) |
||
| 207 | |||
| 208 | ## The only variable needed to be changed |
||
| 209 | # Directory of the Redmine install |
||
| 210 | declare -r RAIL_ROOT='/srv/redmine' |
||
| 211 | # MySQL database |
||
| 212 | declare -r MYSQL_DB='' |
||
| 213 | # MySQL username for the Redemine db |
||
| 214 | declare -r MYSQL_USER='' |
||
| 215 | # MySQL password for the Redemine db |
||
| 216 | declare -r MYSQL_PASSWORD='' |
||
| 217 | # Directory for the backup (must exist and with no space in the name) |
||
| 218 | declare -r DIR='/root' |
||
| 219 | ## end |
||
| 220 | |||
| 221 | # Exit level |
||
| 222 | declare -ir EXIT_OK=0 |
||
| 223 | declare -ir EXIT_WARNING=1 |
||
| 224 | declare -ir EXIT_ERROR=2 |
||
| 225 | |||
| 226 | declare -i STATUS=$EXIT_OK |
||
| 227 | |||
| 228 | # The directory inside the archive |
||
| 229 | declare -r REDMINE='redmine' |
||
| 230 | TMP_DIR=$DIR/$REDMINE |
||
| 231 | |||
| 232 | # This will be used for the archive file |
||
| 233 | declare -r DST=$DIR/redmine_$(date +%Y%m%d_%H%M%S).tar.gz |
||
| 234 | |||
| 235 | # The temporary sql file |
||
| 236 | declare -r TMP_MYSQL=$TMP_DIR/$MYSQL_DB.mysql |
||
| 237 | |||
| 238 | echo "Backup in progress in $DST" |
||
| 239 | |||
| 240 | #### Create the temp directory #### |
||
| 241 | mkdir $TMP_DIR |
||
| 242 | |||
| 243 | #### backup MySQL #### |
||
| 244 | if [ $STATUS -eq $EXIT_OK ] |
||
| 245 | then |
||
| 246 | STEP='Creating MySQL backup' |
||
| 247 | mysqldump --user=$MYSQL_USER --password=$MYSQL_PASSWORD $MYSQL_DB \ |
||
| 248 | > $TMP_MYSQL |
||
| 249 | STATUS=$? |
||
| 250 | fi |
||
| 251 | |||
| 252 | #### backup the Redmine folder #### |
||
| 253 | if [ $STATUS -eq $EXIT_OK ] |
||
| 254 | then |
||
| 255 | STEP='Creating Redmine'"'"' files backup' |
||
| 256 | cp --recursive $RAIL_ROOT $TMP_DIR |
||
| 257 | STATUS=$? |
||
| 258 | fi |
||
| 259 | |||
| 260 | #### create the archive file #### |
||
| 261 | if [ $STATUS -eq $EXIT_OK ] |
||
| 262 | then |
||
| 263 | STEP="Creating archive" |
||
| 264 | tar --create --gzip --file $DST --directory=$DIR $REDMINE |
||
| 265 | STATUS=$? |
||
| 266 | fi |
||
| 267 | |||
| 268 | #### cleanup #### |
||
| 269 | if [ $STATUS -eq $EXIT_OK ] |
||
| 270 | then |
||
| 271 | STEP='Cleaning up' |
||
| 272 | rm --recursive --force $TMP_DIR |
||
| 273 | STATUS=$? |
||
| 274 | fi |
||
| 275 | |||
| 276 | #### exit #### |
||
| 277 | if [ $STATUS -eq $EXIT_OK ] |
||
| 278 | then |
||
| 279 | echo "Backup done" |
||
| 280 | else |
||
| 281 | echo "Bakup failed with error code $STATUS in step $STEP" |
||
| 282 | fi |
||
| 283 | |||
| 284 | |||
| 285 | exit $STATUS |
||
| 286 | |||
| 287 | </code></pre> |