Skip to content

Commit

Permalink
- Update versions
Browse files Browse the repository at this point in the history
- Added database for authentication-service
  • Loading branch information
MichiBaum committed Dec 10, 2023
1 parent 8340e11 commit 87e17f8
Show file tree
Hide file tree
Showing 14 changed files with 56 additions and 37 deletions.
5 changes: 4 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
USERMANAGEMENT_DB_PASSWORD=PleaseChangeMe
USERMANAGEMENT_DB=usermanagement
USERMANAGEMENT_DB=usermanagement

AUTHENTICATION_DB_PASSWORD=PleaseChangeMe
AUTHENTICATION_DB=authentication
2 changes: 1 addition & 1 deletion admin-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.michibaum</groupId>
<artifactId>microservice</artifactId>
<version>1.0.0-TEST-3</version>
<version>1.0.0-TEST-4</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
4 changes: 2 additions & 2 deletions authentication-library/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<artifactId>microservice</artifactId>
<groupId>com.michibaum</groupId>
<version>1.0.0-TEST-3</version>
<version>1.0.0-TEST-4</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand All @@ -28,7 +28,7 @@
<dependency>
<groupId>com.auth0</groupId>
<artifactId>java-jwt</artifactId>
<version>3.18.3</version>
<version>4.4.0</version>
</dependency>
</dependencies>

Expand Down
8 changes: 4 additions & 4 deletions authentication-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<artifactId>microservice</artifactId>
<groupId>com.michibaum</groupId>
<version>1.0.0-TEST-3</version>
<version>1.0.0-TEST-4</version>
</parent>

<artifactId>authentication-service</artifactId>
Expand All @@ -27,7 +27,7 @@
<dependency>
<groupId>com.auth0</groupId>
<artifactId>java-jwt</artifactId>
<version>3.18.3</version>
<version>4.4.0</version>
</dependency>

<dependency>
Expand Down Expand Up @@ -75,12 +75,12 @@
<dependency>
<groupId>com.michibaum</groupId>
<artifactId>authentication-library</artifactId>
<version>1.0.0-TEST-3</version>
<version>1.0.0-TEST-4</version>
</dependency>
<dependency>
<groupId>com.michibaum</groupId>
<artifactId>usermanagement-library</artifactId>
<version>1.0.0-TEST-3</version>
<version>1.0.0-TEST-4</version>
</dependency>

</dependencies>
Expand Down
9 changes: 9 additions & 0 deletions authentication-service/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ spring:
include-description: true
main:
allow-bean-definition-overriding: true
datasource:
username: root
password: ${DATABASE_PASSWORD}
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://authentication-db:3306/${DATABASE}
jpa:
hibernate:
# TODO Change to validate
dll-auto: update

eureka:
client:
Expand Down
23 changes: 17 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ version: '3.7'
services:

registry-service:
image: 70131370/registry-service:1.0.0-TEST-3
image: 70131370/registry-service:1.0.0-TEST-4
restart: always
expose:
- "8761"
networks:
- microservice-network

admin-service:
image: 70131370/admin-service:1.0.0-TEST-3
image: 70131370/admin-service:1.0.0-TEST-4
restart: always
depends_on:
- registry-service
Expand All @@ -21,7 +21,7 @@ services:
- microservice-network

javadoc-service:
image: 70131370/javadoc-service:1.0.0-TEST-3
image: 70131370/javadoc-service:1.0.0-TEST-4
restart: always
depends_on:
- registry-service
Expand All @@ -31,7 +31,7 @@ services:
- microservice-network

authentication-service:
image: 70131370/authentication-service:1.0.0-TEST-3
image: 70131370/authentication-service:1.0.0-TEST-4
restart: always
depends_on:
- registry-service
Expand All @@ -40,8 +40,19 @@ services:
networks:
- microservice-network

authentication-db:
image: mysql:8.0
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${AUTHENTICATION_DB_PASSWORD}
MYSQL_DATABASE: ${AUTHENTICATION_DB}
expose:
- "3306"
volumes:
- /data/authentication-db:/var/lib/mysql

usermanagement-service:
image: 70131370/usermanagement-service:1.0.0-TEST-3
image: 70131370/usermanagement-service:1.0.0-TEST-4
restart: always
depends_on:
- registry-service
Expand All @@ -66,7 +77,7 @@ services:
- /data/usermanagement-db:/var/lib/mysql

gateway-service:
image: 70131370/gateway-service:1.0.0-TEST-3
image: 70131370/gateway-service:1.0.0-TEST-4
restart: always
depends_on:
- registry-service
Expand Down
4 changes: 2 additions & 2 deletions gateway-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>microservice</artifactId>
<groupId>com.michibaum</groupId>
<version>1.0.0-TEST-3</version>
<version>1.0.0-TEST-4</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down Expand Up @@ -50,7 +50,7 @@
<dependency>
<groupId>com.michibaum</groupId>
<artifactId>permission-library</artifactId>
<version>1.0.0-TEST-3</version>
<version>1.0.0-TEST-4</version>
</dependency>

</dependencies>
Expand Down
2 changes: 1 addition & 1 deletion javadoc-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>microservice</artifactId>
<groupId>com.michibaum</groupId>
<version>1.0.0-TEST-3</version>
<version>1.0.0-TEST-4</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion permission-library/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>microservice</artifactId>
<groupId>com.michibaum</groupId>
<version>1.0.0-TEST-3</version>
<version>1.0.0-TEST-4</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
20 changes: 6 additions & 14 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,21 @@

<groupId>com.michibaum</groupId>
<artifactId>microservice</artifactId>
<version>1.0.0-TEST-3</version>
<version>1.0.0-TEST-4</version>
<packaging>pom</packaging>
<name>microservice</name>

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.0.3</version>
<version>3.2.0</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<spring-cloud.version>2022.0.1</spring-cloud.version>
<spring-cloud-gcp.version>4.1.0</spring-cloud-gcp.version>
<spring-boot-admin.version>3.0.0</spring-boot-admin.version>
<spring-cloud.version>2023.0.0</spring-cloud.version>
<spring-boot-admin.version>3.1.8</spring-boot-admin.version>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<java.version>17</java.version>
Expand Down Expand Up @@ -67,13 +66,6 @@
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>spring-cloud-gcp-dependencies</artifactId>
<version>${spring-cloud-gcp.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-dependencies</artifactId>
Expand Down Expand Up @@ -162,14 +154,14 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>3.0.0-M7</version>
<version>3.0.1</version>
<configuration>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.5.0</version>
<version>3.6.3</version>
<configuration>
<outputDirectory>${basedir}/javadoc/src/main/resources</outputDirectory>
<reportOutputDirectory>${basedir}/javadoc/src/main/resources</reportOutputDirectory>
Expand Down
2 changes: 1 addition & 1 deletion registry-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>microservice</artifactId>
<groupId>com.michibaum</groupId>
<version>1.0.0-TEST-3</version>
<version>1.0.0-TEST-4</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion usermanagement-library/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<artifactId>microservice</artifactId>
<groupId>com.michibaum</groupId>
<version>1.0.0-TEST-3</version>
<version>1.0.0-TEST-4</version>
</parent>

<artifactId>usermanagement-library</artifactId>
Expand Down
6 changes: 3 additions & 3 deletions usermanagement-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<artifactId>microservice</artifactId>
<groupId>com.michibaum</groupId>
<version>1.0.0-TEST-3</version>
<version>1.0.0-TEST-4</version>
</parent>

<artifactId>usermanagement-service</artifactId>
Expand Down Expand Up @@ -69,13 +69,13 @@
<dependency>
<groupId>com.michibaum</groupId>
<artifactId>usermanagement-library</artifactId>
<version>1.0.0-TEST-3</version>
<version>1.0.0-TEST-4</version>
</dependency>

<dependency>
<groupId>com.michibaum</groupId>
<artifactId>authentication-library</artifactId>
<version>1.0.0-TEST-3</version>
<version>1.0.0-TEST-4</version>
</dependency>

</dependencies>
Expand Down
4 changes: 4 additions & 0 deletions usermanagement-service/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ spring:
password: ${DATABASE_PASSWORD}
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://usermanagement-db:3306/${DATABASE}
jpa:
hibernate:
# TODO Change to validate
dll-auto: update

eureka:
client:
Expand Down

0 comments on commit 87e17f8

Please sign in to comment.