Skip to content
Snippets Groups Projects
Commit 79ece43d authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Merge branch 'release_6.0.0_php8'

parents 21c26534 3dc3916c
Branches master
No related tags found
No related merge requests found
Pipeline #20479 failed
aaa.sh
\ No newline at end of file
#!/bin/bash
set -e
usage() {
cat << EOF
Script de génération du fichier de version.
Usage :
$0 <gitdir>
<gitdir> : Chemin du répertoire des métadonnées git (.git), ou du dépôt git intermédiaire. Obligatoire.
Exemples :
$0 /workspace/sygal/.git
EOF
exit 0;
}
CURR_DIR=$(cd `dirname $0` && pwd)
APPDIR=$(cd ${CURR_DIR}/.. && pwd)
GITDIR=$1
[[ -z "$GITDIR" ]] && usage
function generate_version_file() {
GITDIR=$1
VERSION_CMD="git --git-dir ${GITDIR} describe"
DATE_CMD="git --git-dir ${GITDIR} log --pretty='format:%ad' --date=format:'%d/%m/%Y %H:%M:%S' -1"
echo "==> Génération du fichier de version..."
ver_num=$(eval ${VERSION_CMD})
ver_date=$(eval ${DATE_CMD})
cd ${APPDIR} && ./create-version-config-file --number ${ver_num} --date ${ver_date}
}
generate_version_file $(realpath $GITDIR)
......@@ -50,10 +50,10 @@ git clone https://git.unicaen.fr/open-source/docker/unicaen-image.git ${UNICAEN_
cd ${UNICAEN_IMAGE_TMP_DIR}
```
- Lancez-y le script `Dockerfile-7.x.sh` conçu pour la version 7.4 de PHP.
- Lancez-y le script `Dockerfile-8.x.sh` conçu pour la version 8.0 de PHP.
```bash
PHP_VERSION=7.4
bash Dockerfile-7.x.sh ${PHP_VERSION}
PHP_VERSION=8.0
bash Dockerfile-8.x.sh ${PHP_VERSION}
```
- Ensuite, quelque part sur le serveur, récupérez cette fois l'image Docker `sygal-image` puis placez-vous dans
......@@ -98,12 +98,12 @@ Notamment, lorsque sa valeur est `development`, cela active l'affichage détaill
- Prenez connaissance du chemin spécifié par le paramètre `error_log` du fichier de config `/etc/php/${PHP_VERSION}/fpm/php-fpm.conf`,
exemple :
```conf
error_log = /var/log/php7.4-fpm.log
error_log = /var/log/php8.0-fpm.log
```
- Créez le fichier de log avec le propriétaire qui va bien, exemple :
```bash
FPM_PHP_LOG_FILE=/var/log/php7.4-fpm.log
FPM_PHP_LOG_FILE=/var/log/php8.0-fpm.log
touch ${FPM_PHP_LOG_FILE} && chown www-data:www-data ${FPM_PHP_LOG_FILE}
```
......
Migration vers Bootstrap 4
==========================
- passage à jquery 3.x ?
Remplacements
-------------
- .dl-horizontal => .row + grid column classes (or mixins) on its <dt> and <dd> children.
- .navbar-inverse, .navbar-header disparaissent
- .navbar-fixed-top => .fixed-top
- .navbar-toggle => .navbar-toggler
- nouvelles classes : .nav-link, .nav-item
- .input-group-addon => input-group-prepend ou input-group-append
- .col-xs-* => .col-*
- .panel => .card + .card-body (panel-primary supprimé, alternatiove à trouver https://getbootstrap.com/docs/4.0/components/card/#card-styles)
- glyphicon glyphicon-* => icon icon-* (nouveau dans unicaen/app)
- .table-condensed => .table-sm
- control-label => .col-form-label.
- .input-lg and .input-sm => .form-control-lg and .form-control-sm, respectively.
- .help-block => .form-text (https://getbootstrap.com/docs/4.0/migration/#forms-1)
- .form-horizontal supprimé : trouver une parade (https://getbootstrap.com/docs/4.0/migration/#forms-1)
- .has-error, .has-warning, and .has-success disparaissent : style à récupérer
- .btn-default => .btn-secondary
- .btn-xs => .btn-sm
- navbar : navbar-expand-md ajouté pour gestion du collapse, + navbar-dark bg-dark. Quid de .navbar-inverse ?
- .breadcrumb-item, is now required on the descendants of .breadcrumbs
NB
--
- "Added a new sm grid tier below 768px for more granular control. We now have xs, sm, md, lg, and xl. This also means
every tier has been bumped up one level (so .col-md-6 in v3 is now .col-lg-6 in v4)."
(https://getbootstrap.com/docs/4.0/migration/#grid-system)
- màj bootstrap-confirmation : fait pour B4, mais pas de version pour B5 !
- màj bootstrap-datetimepicker nécessaire ? Non, unicaen/app fournit la dernière version 4.17.47 et elle semble pouvoir fonctionner avec B5.
- màj bootstrap-select ? Non, fonctionne avec B4 (ex: filtres de thèses).
- màj bootstrap-multiselect ? non, ça semble fonctionner (ex: filtre textuel de thèses)
- popover : option `sanitize: true` requise sinon pas de <table> possible das un popover !
- .page-header disparaît
- <blockquote> plus stylé : utiliser .blockquote and the .blockquote-reverse
- nouveau : .table-inverse, .thead-default and .thead-inverse.
- disparaissent : $().button(string) and $().button('reset')
- envisager de remplacer <div.navbar> par <nav>
SyGAL RAF
---------
- remplacer : $().button(string) and $().button('reset') https://getbootstrap.com/docs/4.0/migration/#buttons
\ No newline at end of file
#!/usr/bin/env bash
DIR=$(cd `dirname $0` && pwd)
cd ${DIR}
DIST_FILE_PATH=${DIR}/config/autoload/auto.version.local.php.dist
TARGET_FILE_PATH=${DIR}/config/autoload/auto.version.local.php
ver_num=$(git describe) && \
ver_date=$(git log --pretty='format:%ad' --date=format:'%d/%m/%Y %H:%M:%S' -1) && \
cp -f ${DIST_FILE_PATH} ${TARGET_FILE_PATH} && \
sed -i "s#_VERSION_NUMBER_#${ver_num}#; s#_VERSION_DATE_#${ver_date}#; s#_GENERATION_DATE_#$(date)#" ${TARGET_FILE_PATH} && \
echo "Fichier de version généré : ${TARGET_FILE_PATH} (version = '${ver_num}', date = '${ver_date}')"
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment