From 9cf13fc3fa99147ee7a802c5865143a2caf67b01 Mon Sep 17 00:00:00 2001 From: FaroukBenhaj Date: Tue, 25 Feb 2025 16:05:13 +0100 Subject: [PATCH 1/4] DockerFile configuration added --- .idea/material_theme_project_new.xml | 10 ++++++++++ backEnd/.idea/compiler.xml | 2 ++ backEnd/.idea/encodings.xml | 1 + backEnd/.idea/material_theme_project_new.xml | 10 ++++++++++ backEnd/.idea/misc.xml | 3 ++- backEnd/eureka/Dockerfile | 4 ++++ backEnd/microservices/candidat/Dockerfile | 4 ++++ .../candidat/src/main/resources/application.properties | 1 + 8 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 .idea/material_theme_project_new.xml create mode 100644 backEnd/.idea/material_theme_project_new.xml create mode 100644 backEnd/eureka/Dockerfile create mode 100644 backEnd/microservices/candidat/Dockerfile diff --git a/.idea/material_theme_project_new.xml b/.idea/material_theme_project_new.xml new file mode 100644 index 0000000..6001343 --- /dev/null +++ b/.idea/material_theme_project_new.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/backEnd/.idea/compiler.xml b/backEnd/.idea/compiler.xml index 1c6e637..7dec5a5 100644 --- a/backEnd/.idea/compiler.xml +++ b/backEnd/.idea/compiler.xml @@ -7,11 +7,13 @@ + diff --git a/backEnd/.idea/encodings.xml b/backEnd/.idea/encodings.xml index ad1f598..2cf59ff 100644 --- a/backEnd/.idea/encodings.xml +++ b/backEnd/.idea/encodings.xml @@ -1,6 +1,7 @@ + \ No newline at end of file diff --git a/backEnd/.idea/material_theme_project_new.xml b/backEnd/.idea/material_theme_project_new.xml new file mode 100644 index 0000000..da5baa8 --- /dev/null +++ b/backEnd/.idea/material_theme_project_new.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/backEnd/.idea/misc.xml b/backEnd/.idea/misc.xml index d334884..c743020 100644 --- a/backEnd/.idea/misc.xml +++ b/backEnd/.idea/misc.xml @@ -5,8 +5,9 @@ - + \ No newline at end of file diff --git a/backEnd/eureka/Dockerfile b/backEnd/eureka/Dockerfile new file mode 100644 index 0000000..925e4b3 --- /dev/null +++ b/backEnd/eureka/Dockerfile @@ -0,0 +1,4 @@ +FROM ubuntu:latest +LABEL authors="medfa" + +ENTRYPOINT ["top", "-b"] \ No newline at end of file diff --git a/backEnd/microservices/candidat/Dockerfile b/backEnd/microservices/candidat/Dockerfile new file mode 100644 index 0000000..2a1e26c --- /dev/null +++ b/backEnd/microservices/candidat/Dockerfile @@ -0,0 +1,4 @@ +FROM openjdk:17 +EXPOSE 8081 +ADD target/candidat-0.0.1-SNAPSHOT.jar candidat.jar +ENTRYPOINT ["java", "-jar" , "candidat.jar"] \ No newline at end of file diff --git a/backEnd/microservices/candidat/src/main/resources/application.properties b/backEnd/microservices/candidat/src/main/resources/application.properties index 43991a2..fb5b605 100644 --- a/backEnd/microservices/candidat/src/main/resources/application.properties +++ b/backEnd/microservices/candidat/src/main/resources/application.properties @@ -1,4 +1,5 @@ spring.application.name=candidat +server.port= 8081 #H2 spring.h2.console.enabled=true spring.h2.console.path=/h2 From ea817b7632206e3f6036ca529118a98c453fecc0 Mon Sep 17 00:00:00 2001 From: emnachelly31 Date: Tue, 25 Feb 2025 16:06:48 +0100 Subject: [PATCH 2/4] docker done:candidat --- backEnd/microservices/candidat/Dockerfile | 6 ++++++ .../candidat/src/main/resources/application.properties | 1 + 2 files changed, 7 insertions(+) create mode 100644 backEnd/microservices/candidat/Dockerfile diff --git a/backEnd/microservices/candidat/Dockerfile b/backEnd/microservices/candidat/Dockerfile new file mode 100644 index 0000000..d2803de --- /dev/null +++ b/backEnd/microservices/candidat/Dockerfile @@ -0,0 +1,6 @@ +FROM openjdk:17 +EXPOSE 8045 +ADD target/candidat-0.0.1-SNAPSHOT.jar candidat.jar +LABEL authors="emnac" + +ENTRYPOINT ["java", "-jar","candidat.jar"] \ No newline at end of file diff --git a/backEnd/microservices/candidat/src/main/resources/application.properties b/backEnd/microservices/candidat/src/main/resources/application.properties index 43991a2..ffdc514 100644 --- a/backEnd/microservices/candidat/src/main/resources/application.properties +++ b/backEnd/microservices/candidat/src/main/resources/application.properties @@ -1,4 +1,5 @@ spring.application.name=candidat +server.port=8045 #H2 spring.h2.console.enabled=true spring.h2.console.path=/h2 From 0bc487fb8b3cb047ed2f0ee0786bca104b7c7f5a Mon Sep 17 00:00:00 2001 From: FaroukBenhaj Date: Tue, 25 Feb 2025 16:56:21 +0100 Subject: [PATCH 3/4] DockerFile configuration added Eureka + gateway --- backEnd/.idea/compiler.xml | 2 ++ backEnd/.idea/encodings.xml | 1 + backEnd/.idea/misc.xml | 1 + backEnd/eureka/Dockerfile | 8 ++++---- backEnd/gateway/Dockerfile | 4 ++++ 5 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 backEnd/gateway/Dockerfile diff --git a/backEnd/.idea/compiler.xml b/backEnd/.idea/compiler.xml index 7dec5a5..e730d8b 100644 --- a/backEnd/.idea/compiler.xml +++ b/backEnd/.idea/compiler.xml @@ -8,12 +8,14 @@ + diff --git a/backEnd/.idea/encodings.xml b/backEnd/.idea/encodings.xml index 2cf59ff..acc2464 100644 --- a/backEnd/.idea/encodings.xml +++ b/backEnd/.idea/encodings.xml @@ -2,6 +2,7 @@ + \ No newline at end of file diff --git a/backEnd/.idea/misc.xml b/backEnd/.idea/misc.xml index c743020..f7b0d54 100644 --- a/backEnd/.idea/misc.xml +++ b/backEnd/.idea/misc.xml @@ -6,6 +6,7 @@ diff --git a/backEnd/eureka/Dockerfile b/backEnd/eureka/Dockerfile index 925e4b3..79bf6f2 100644 --- a/backEnd/eureka/Dockerfile +++ b/backEnd/eureka/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:latest -LABEL authors="medfa" - -ENTRYPOINT ["top", "-b"] \ No newline at end of file +FROM openjdk:17 +EXPOSE 8761 +ADD target/eureka-0.0.1-SNAPSHOT.jar eureka.jar +ENTRYPOINT ["java", "-jar" , "eureka.jar"] \ No newline at end of file diff --git a/backEnd/gateway/Dockerfile b/backEnd/gateway/Dockerfile new file mode 100644 index 0000000..9502029 --- /dev/null +++ b/backEnd/gateway/Dockerfile @@ -0,0 +1,4 @@ +FROM openjdk:17 +EXPOSE 8065 +ADD target/gateway-0.0.1-SNAPSHOT.jar gateway.jar +ENTRYPOINT ["java", "-jar" , "gateway.jar"] \ No newline at end of file From 2eb1dc3e0b5dcf7966503f3f9e9d4e467ff1025e Mon Sep 17 00:00:00 2001 From: kossayboubaker Date: Thu, 27 Feb 2025 11:20:07 +0100 Subject: [PATCH 4/4] le dockerfile job --- .idea/compiler.xml | 4 ++++ .idea/misc.xml | 1 - backEnd/microservices/job/Dockerfile | 5 +++++ backEnd/microservices/job/Dockerfile~ | 5 +++++ 4 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 backEnd/microservices/job/Dockerfile create mode 100644 backEnd/microservices/job/Dockerfile~ diff --git a/.idea/compiler.xml b/.idea/compiler.xml index 580bfc0..394a73a 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -11,6 +11,10 @@ + + + +