Commit f3043c68 authored by Stephane Bouvry's avatar Stephane Bouvry
Browse files

[kusanai]

 - Docker : installation de NodeJS/Yarn, utilisation du script de mise à jour au lancement
 - Mise à jour du script de mise à jour (compilation JS)
parent 27aa4f85
Loading
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -99,6 +99,12 @@ RUN rm /tmp/instantclient-sqlplus-linux.x64-18.5.0.0.0dbru.zip
# librairie wkhtmltopdf : Génération des PDF
RUN apt install -y wkhtmltopdf

# Installation de NodeJS 22 LTS \
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
RUN apt-get install -y nodejs

# installation de Yarn (gestionnaire de dépendance node)
RUN npm install --global yarn

# Copier le script de surveillance
WORKDIR /var/application
+1 −13
Original line number Diff line number Diff line
@@ -5,18 +5,6 @@ echo "OSCAR INITIALISATION...\n"
# On régle le safe.directory de GIT
git config --global --add safe.directory /var/application

# Installation des dépendances PHP
composer install --no-interaction

## Mise à jour du modèle (si besoin)
php vendor/bin/doctrine-module orm:schema-tool:update --force --complete

php bin/oscar.php check:privileges -n

mkdir -p public/unicaen
ln -sf vendor/unicaen/signature/public/dist public/unicaen/signature

## Note de version
php bin/oscar.php infos
sh oscar-update.sh

php /var/application/bin/oscar-worker.php

install/i18n.json

0 → 100644
+0 −0

Empty file added.

+2 −0
Original line number Diff line number Diff line
@@ -17,6 +17,8 @@ class ViteUtils

    private $basePath;

    private $baseUrl;

    private $buildedJs;

    private $buildedCss;
+6 −2
Original line number Diff line number Diff line
@@ -69,7 +69,7 @@ echo "✅ Composer version $COMPOSER_VERSION détectée (== 2.2.24)"

echo "############################################### COMPOSER UPDATE"
## mise à jour des dépendances PHP
${COMPOSER} install -n
composer install --no-interaction

echo "############################################### MODEL UPDATE"
## Mise à jour du modèle (si besoin)
@@ -78,7 +78,7 @@ php vendor/bin/doctrine-module orm:schema-tool:update --force --complete

echo "############################################### CHECK PRIVILEGES"
## Mise à jour des privilèges
php bin/oscar.php check:privileges
php bin/oscar.php check:privileges -n

if [ "$SKIP_NODE" -eq 0 ]; then
  echo "############################################### UI"
@@ -87,6 +87,10 @@ if [ "$SKIP_NODE" -eq 0 ]; then
  cd ../
fi

# Lien symbolique
mkdir -p public/unicaen
ln -sf vendor/unicaen/signature/public/dist public/unicaen/signature

echo "############################################### UPDATE INFOS"
php bin/oscar.php infos