Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor back #19

Merged
merged 23 commits into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
59c5a7d
Refactor : Suppression des objets DaoProvider et ServiceProvider
pierre-maraval Feb 26, 2024
3a73681
Refactor : mise à jour version java / spring
pierre-maraval Feb 27, 2024
a12ce66
Refactor : mise à jour version java / spring
pierre-maraval Feb 29, 2024
96d6eb1
Refactor : maj value
pierre-maraval Feb 29, 2024
e5f5719
Merge branch 'develop' into refactor_back
pierre-maraval Apr 18, 2024
e896fe1
Fix : merge de develop suite à correction bug accesCbs et changement …
pierre-maraval Apr 18, 2024
11eeab5
Fix : update version jdk dans Dockerfile
pierre-maraval Apr 18, 2024
65b6ab6
Fix : renommage des package pour build docker, optimisation de code
pierre-maraval Apr 18, 2024
9d91497
Feat : Ajout webDto + mapper
pierre-maraval Apr 22, 2024
27cb3ec
Refactor : ajout DTO web + mapper + TU
pierre-maraval Apr 29, 2024
0cdda1d
Refactor : Ajout Strategy dans Controller Demandes
pierre-maraval Apr 30, 2024
affb161
Refactor : fix TU
pierre-maraval Apr 30, 2024
95ee08c
Feat : Retour arrière sur pagination + correction bug affichage ILN d…
pierre-maraval May 15, 2024
c6ef879
Fix : ajout strategy pour récupération LigneFichierService dans mailer
pierre-maraval May 23, 2024
1c019d3
Fix : Fusion des controllers récupérant l'ensemble des demandes en fo…
pierre-maraval May 30, 2024
e80e7f3
Fix : ajout controle role sur tous les controller
pierre-maraval May 30, 2024
e1a8d24
Fix : Initialisation authorities lors de la création du user dans le …
pierre-maraval Jun 5, 2024
b263100
Fix : Ajout gestion exception fichier à télécharger introuvable
pierre-maraval Jun 11, 2024
d1753a9
Fix : Ajout request param sur type demande dans get file
pierre-maraval Jun 11, 2024
80229bb
Fix : Ajout controle sur les droits à l'authentification et envoie d'…
pierre-maraval Jun 12, 2024
f81ee3e
Fix : Ajout message d'erreur plus explicite en cas de login manager i…
pierre-maraval Jun 13, 2024
fc86d28
Fix : suppression script lancement batch restart job
pierre-maraval Jun 13, 2024
a4ba068
Refactor : suppression dialect bdd dans properties
pierre-maraval Jun 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
###
# Image pour la compilation
FROM maven:3-eclipse-temurin-11 as build-image
FROM maven:3-eclipse-temurin-17 as build-image
WORKDIR /build/
# Installation et configuration de la locale FR
RUN apt update && DEBIAN_FRONTEND=noninteractive apt -y install locales
Expand Down Expand Up @@ -35,7 +35,7 @@ RUN mvn --batch-mode \
#FROM tomcat:9-jdk11 as api-image
#COPY --from=build-image /build/web/target/*.war /usr/local/tomcat/webapps/ROOT.war
#CMD [ "catalina.sh", "run" ]
FROM tomcat:9-jdk11 as api-image
FROM tomcat:9-jdk17 as api-image
WORKDIR /app/
COPY --from=build-image /build/web/target/*.jar /app/item.jar
ENV TZ=Europe/Paris
Expand Down Expand Up @@ -63,14 +63,12 @@ RUN dnf install -y cronie gettext && \
crond -V && rm -rf /etc/cron.*/*
COPY ./docker/batch/tasks.tmpl /etc/cron.d/tasks.tmpl
# Le JAR et le script pour le batch de LN
RUN dnf install -y java-11-openjdk
RUN dnf install -y java-17-openjdk

RUN dnf install -y tzdata && \
ln -fs /usr/share/zoneinfo/Europe/Paris /etc/localtime && \
echo "Europe/London" > /etc/timezone

COPY ./docker/batch/itemBatchRestartJobs.sh /scripts/itemBatchRestartJobs.sh
RUN chmod +x /scripts/itemBatchRestartJobs.sh
COPY ./docker/batch/itemBatchArchiverDemandesPlusDeTroisMois.sh /scripts/itemBatchArchiverDemandesPlusDeTroisMois.sh
RUN chmod +x /scripts/itemBatchArchiverDemandesPlusDeTroisMois.sh
COPY ./docker/batch/itemBatchExportStatistiques.sh /scripts/itemBatchExportStatistiques.sh
Expand Down
15 changes: 12 additions & 3 deletions batch/pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>itembackoffice</artifactId>
<groupId>fr.abes.item</groupId>
Expand Down Expand Up @@ -31,24 +32,32 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>2.2.224</version>
</dependency>
<!-- ************** RETRY *************************** -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
<version>3.1.3</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.14</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpmime</artifactId>
<version>4.5.14</version>
</dependency>
<dependency>
<groupId>org.springframework.retry</groupId>
<artifactId>spring-retry</artifactId>
<version>2.0.2</version>
</dependency>

</dependencies>
<!-- =========================================================== -->
<!-- Configuration de la compilation -->
Expand All @@ -74,7 +83,7 @@
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.3.5.RELEASE</version>
<configuration>
<mainClass>fr.abes.item.Application</mainClass>
<mainClass>fr.abes.item.batch.Application</mainClass>
</configuration>
<executions>
<execution>
Expand Down
383 changes: 0 additions & 383 deletions batch/src/main/java/fr/abes/item/BatchConfiguration.java

This file was deleted.

111 changes: 0 additions & 111 deletions batch/src/main/java/fr/abes/item/ItemBatchConfigurer.java

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package fr.abes.item;
package fr.abes.item.batch;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
Expand All @@ -7,6 +7,6 @@
public class Application {

public static void main(String[] args) {
System.exit(SpringApplication.exit(SpringApplication.run(Application.class, args)));
SpringApplication.exit(SpringApplication.run(Application.class, args));
}
}
Loading
Loading