Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MIAGE_GLOP_Banzai_USER_MANAGEMENT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Package registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Madeline Carpentier
MIAGE_GLOP_Banzai_USER_MANAGEMENT
Commits
ecc3261e
Commit
ecc3261e
authored
3 months ago
by
Abdellatif Kebraoui
Browse files
Options
Downloads
Patches
Plain Diff
[FEAT] update dependencies and configuration for improved cloud deployment
parent
e308dfa2
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
pom.xml
+14
-7
14 additions, 7 deletions
pom.xml
src/main/resources/application-cloud.yml
+23
-9
23 additions, 9 deletions
src/main/resources/application-cloud.yml
with
37 additions
and
16 deletions
pom.xml
+
14
−
7
View file @
ecc3261e
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<parent>
<parent>
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-parent
</artifactId>
<artifactId>
spring-boot-starter-parent
</artifactId>
<version>
3.
4.0
</version>
<version>
3.
2.3
</version>
<relativePath/>
<!-- Lookup parent from repository -->
<relativePath/>
<!-- Lookup parent from repository -->
</parent>
</parent>
...
@@ -29,6 +29,18 @@
...
@@ -29,6 +29,18 @@
<sonar.organization>
gitlab-univ-2
</sonar.organization>
<sonar.organization>
gitlab-univ-2
</sonar.organization>
</properties>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-dependencies
</artifactId>
<version>
2023.0.1
</version>
<!-- Compatible with Spring Boot 3.2.x -->
<type>
pom
</type>
<scope>
import
</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependencies>
<!-- Spring Boot Starters -->
<!-- Spring Boot Starters -->
<dependency>
<dependency>
...
@@ -47,7 +59,6 @@
...
@@ -47,7 +59,6 @@
<dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-eureka-client
</artifactId>
<artifactId>
spring-cloud-starter-netflix-eureka-client
</artifactId>
<version>
4.2.0
</version>
</dependency>
</dependency>
<!-- Database drivers -->
<!-- Database drivers -->
...
@@ -56,11 +67,7 @@
...
@@ -56,11 +67,7 @@
<artifactId>
postgresql
</artifactId>
<artifactId>
postgresql
</artifactId>
<version>
42.7.2
</version>
<version>
42.7.2
</version>
</dependency>
</dependency>
<dependency>
<!-- Removing MySQL dependency as PostgreSQL is the preferred DB for cloud deployment -->
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
<version>
8.0.33
</version>
</dependency>
<!-- H2 Database for testing -->
<!-- H2 Database for testing -->
<dependency>
<dependency>
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/application-cloud.yml
+
23
−
9
View file @
ecc3261e
server
:
server
:
address
:
0.0.0.0
address
:
0.0.0.0
port
:
${PORT:8080}
port
:
${PORT:80}
error
:
include-message
:
always
spring
:
spring
:
application
:
name
:
user-management-service
datasource
:
datasource
:
url
:
jdbc:postgresql://172.29.32.3:5432/bdd_assure
url
:
${SPRING_DATASOURCE_URL:jdbc:postgresql://localhost:5432/userdb}
username
:
dbuser
username
:
${SPRING_DATASOURCE_USERNAME:postgres}
password
:
ComplexPassword123!
password
:
${SPRING_DATASOURCE_PASSWORD:postgres}
driver-class-name
:
org.postgresql.Driver
driver-class-name
:
org.postgresql.Driver
jpa
:
jpa
:
database-platform
:
org.hibernate.dialect.PostgreSQLDialect
hibernate
:
hibernate
:
ddl-auto
:
update
ddl-auto
:
update
properties
:
properties
:
hibernate
:
hibernate
:
'
[format_sql]'
:
true
dialect
:
org.hibernate.dialect.PostgreSQLDialect
show-
sql
:
true
format_
sql
:
true
eureka
:
eureka
:
client
:
client
:
...
@@ -24,10 +27,12 @@ eureka:
...
@@ -24,10 +27,12 @@ eureka:
registryFetchIntervalSeconds
:
30
registryFetchIntervalSeconds
:
30
healthcheck
:
healthcheck
:
enabled
:
true
enabled
:
true
register-with-eureka
:
true
fetch-registry
:
true
instance
:
instance
:
prefer-ip-address
:
true
prefer-ip-address
:
true
hostname
:
${K_SERVICE:user-management-service}.${K_REVISION:default}.${K_CONFIGURATION:default}.run.app
hostname
:
${K_SERVICE:user-management-service}.${K_REVISION:default}.${K_CONFIGURATION:default}.run.app
secure-port
:
${PORT:80
80
}
secure-port
:
${PORT:80}
secure-port-enabled
:
true
secure-port-enabled
:
true
non-secure-port-enabled
:
false
non-secure-port-enabled
:
false
instance-id
:
${spring.application.name}:${random.uuid}
instance-id
:
${spring.application.name}:${random.uuid}
...
@@ -36,3 +41,12 @@ eureka:
...
@@ -36,3 +41,12 @@ eureka:
leaseExpirationDurationInSeconds
:
90
leaseExpirationDurationInSeconds
:
90
metadataMap
:
metadataMap
:
instanceId
:
${spring.application.name}:${random.uuid}
instanceId
:
${spring.application.name}:${random.uuid}
management
:
endpoints
:
web
:
exposure
:
include
:
health,info
endpoint
:
health
:
show-details
:
always
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment