diff --git a/account-service/Dockerfile b/account-service/Dockerfile index 8b4659d8..cc234df9 100644 --- a/account-service/Dockerfile +++ b/account-service/Dockerfile @@ -1,4 +1,4 @@ -FROM openjdk:8-jdk-alpine +FROM azul/zulu-openjdk-alpine:11 MAINTAINER Piotr Minkowski MAINTAINER Ramazan Sakin ADD target/account-service.jar account-service.jar diff --git a/account-service/pom.xml b/account-service/pom.xml index 886111a9..8240fbf8 100644 --- a/account-service/pom.xml +++ b/account-service/pom.xml @@ -1,51 +1,52 @@ - - 4.0.0 - - pl.piomin - sample-spring-microservices - 1.0-SNAPSHOT - - account-service + + 4.0.0 + account-service + + pl.piomin + sample-spring-microservices + 2.0 + - - - org.springframework.cloud - spring-cloud-starter-eureka - - - org.springframework.boot - spring-boot-starter-actuator - - - org.springframework.cloud - spring-cloud-starter-sleuth - - - org.springframework.cloud - spring-cloud-sleuth-zipkin - - + + + org.springframework.cloud + spring-cloud-starter-eureka + + + org.springframework.boot + spring-boot-starter-actuator + + + org.springframework.cloud + spring-cloud-starter-sleuth + + + org.springframework.cloud + spring-cloud-sleuth-zipkin + + - - account-service - - - org.springframework.boot - spring-boot-maven-plugin - - pl.piomin.microservices.account.AccountServiceApplication - true - - - - - repackage - - - - - - + + account-service + + + org.springframework.boot + spring-boot-maven-plugin + + pl.piomin.microservices.account.AccountServiceApplication + true + + + + + repackage + + + + + + \ No newline at end of file diff --git a/customer-service/Dockerfile b/customer-service/Dockerfile index 5c90e2b0..b4179126 100644 --- a/customer-service/Dockerfile +++ b/customer-service/Dockerfile @@ -1,4 +1,4 @@ -FROM openjdk:8-jdk-alpine +FROM azul/zulu-openjdk-alpine:11 MAINTAINER Piotr Minkowski MAINTAINER Ramazan Sakin ADD target/customer-service.jar customer-service.jar diff --git a/customer-service/pom.xml b/customer-service/pom.xml index b42545a1..f243d156 100644 --- a/customer-service/pom.xml +++ b/customer-service/pom.xml @@ -1,55 +1,56 @@ - - 4.0.0 - - pl.piomin - sample-spring-microservices - 1.0-SNAPSHOT - - customer-service + + 4.0.0 + + pl.piomin + sample-spring-microservices + 2.0 + + customer-service - - - org.springframework.cloud - spring-cloud-starter-eureka - - - org.springframework.boot - spring-boot-starter-actuator - - - org.springframework.cloud - spring-cloud-starter-feign - - - org.springframework.cloud - spring-cloud-starter-sleuth - - - org.springframework.cloud - spring-cloud-sleuth-zipkin - - + + + org.springframework.cloud + spring-cloud-starter-eureka + + + org.springframework.boot + spring-boot-starter-actuator + + + org.springframework.cloud + spring-cloud-starter-feign + + + org.springframework.cloud + spring-cloud-starter-sleuth + + + org.springframework.cloud + spring-cloud-sleuth-zipkin + + - - customer-service - - - org.springframework.boot - spring-boot-maven-plugin - - pl.piomin.microservices.customer.CustomerServiceApplication - true - - - - - repackage - - - - - - + + customer-service + + + org.springframework.boot + spring-boot-maven-plugin + + pl.piomin.microservices.customer.CustomerServiceApplication + true + + + + + repackage + + + + + + \ No newline at end of file diff --git a/discovery-service/Dockerfile b/discovery-service/Dockerfile index 63d7d20c..0b854a00 100644 --- a/discovery-service/Dockerfile +++ b/discovery-service/Dockerfile @@ -1,4 +1,4 @@ -FROM openjdk:8-jdk-alpine +FROM azul/zulu-openjdk-alpine:11 MAINTAINER Piotr Minkowski MAINTAINER Ramazan Sakin ADD target/discovery-service.jar discovery-service.jar diff --git a/discovery-service/pom.xml b/discovery-service/pom.xml index f3701695..0a18fb77 100644 --- a/discovery-service/pom.xml +++ b/discovery-service/pom.xml @@ -1,39 +1,40 @@ - - 4.0.0 - - pl.piomin - sample-spring-microservices - 1.0-SNAPSHOT - - discovery-service + + 4.0.0 + + pl.piomin + sample-spring-microservices + 2.0 + + discovery-service - - - org.springframework.cloud - spring-cloud-starter-eureka-server - - + + + org.springframework.cloud + spring-cloud-starter-eureka-server + + - - discovery-service - - - org.springframework.boot - spring-boot-maven-plugin - - pl.piomin.microservices.eureka.DiscoveryServiceApplication - true - - - - - repackage - - - - - - + + discovery-service + + + org.springframework.boot + spring-boot-maven-plugin + + pl.piomin.microservices.eureka.DiscoveryServiceApplication + true + + + + + repackage + + + + + + \ No newline at end of file diff --git a/gateway-service/Dockerfile b/gateway-service/Dockerfile index 259e2c39..86b00e00 100644 --- a/gateway-service/Dockerfile +++ b/gateway-service/Dockerfile @@ -1,4 +1,4 @@ -FROM openjdk:8-jdk-alpine +FROM azul/zulu-openjdk-alpine:11 MAINTAINER Piotr Minkowski MAINTAINER Ramazan Sakin ADD target/gateway-service.jar gateway-service.jar diff --git a/gateway-service/pom.xml b/gateway-service/pom.xml index 6bbd279f..96b6d982 100644 --- a/gateway-service/pom.xml +++ b/gateway-service/pom.xml @@ -1,63 +1,64 @@ - - 4.0.0 - - pl.piomin - sample-spring-microservices - 1.0-SNAPSHOT - - gateway-service + + 4.0.0 + gateway-service + + pl.piomin + sample-spring-microservices + 2.0 + - - - org.springframework.cloud - spring-cloud-starter-eureka - - - org.springframework.boot - spring-boot-starter - - - org.springframework - spring-web - - - org.springframework.cloud - spring-cloud-starter-zuul - - - org.springframework.boot - spring-boot-starter-actuator - - - org.springframework.cloud - spring-cloud-starter-sleuth - - - org.springframework.cloud - spring-cloud-sleuth-zipkin - - + + + org.springframework.cloud + spring-cloud-starter-eureka + + + org.springframework.boot + spring-boot-starter + + + org.springframework + spring-web + + + org.springframework.cloud + spring-cloud-starter-zuul + + + org.springframework.boot + spring-boot-starter-actuator + + + org.springframework.cloud + spring-cloud-starter-sleuth + + + org.springframework.cloud + spring-cloud-sleuth-zipkin + + + + + gateway-service + + + org.springframework.boot + spring-boot-maven-plugin + + pl.piomin.microservices.edge.GatewayServiceApplication + true + + + + + repackage + + + + + + - - gateway-service - - - org.springframework.boot - spring-boot-maven-plugin - - pl.piomin.microservices.edge.GatewayServiceApplication - true - - - - - repackage - - - - - - - \ No newline at end of file diff --git a/pom.xml b/pom.xml index 57f32758..e80b11dc 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 pl.piomin sample-spring-microservices - 1.0-SNAPSHOT + 2.0 pom @@ -13,8 +13,8 @@ - 1.8 - 1.4.2.RELEASE + 11 + 2.1.5.RELEASE 1.2.2.RELEASE @@ -30,7 +30,20 @@ org.projectlombok lombok - 1.18.12 + 1.18.20 + + + + jakarta.xml.bind + jakarta.xml.bind-api + 2.3.2 + + + + + org.glassfish.jaxb + jaxb-runtime + 2.3.2 diff --git a/zipkin-service/Dockerfile b/zipkin-service/Dockerfile index 5794d2b8..a0db4394 100644 --- a/zipkin-service/Dockerfile +++ b/zipkin-service/Dockerfile @@ -1,4 +1,4 @@ -FROM openjdk:8-jdk-alpine +FROM azul/zulu-openjdk-alpine:11 MAINTAINER Ramazan Sakin ADD target/*.jar zipkin-service.jar EXPOSE 9411 diff --git a/zipkin-service/pom.xml b/zipkin-service/pom.xml index b76f677f..a8abd986 100644 --- a/zipkin-service/pom.xml +++ b/zipkin-service/pom.xml @@ -1,28 +1,26 @@ - 4.0.0 + zipkin-service pl.piomin sample-spring-microservices - 1.0-SNAPSHOT + 2.0 - zipkin-service io.zipkin.java zipkin-server - 1.16.2 io.zipkin.java zipkin - 1.16.2 io.zipkin.java zipkin-autoconfigure-ui - 1.16.2 diff --git a/zipkin-service/src/main/java/pl/piomin/microservices/zipkin/ZipkinServiceApplication.java b/zipkin-service/src/main/java/pl/piomin/microservices/zipkin/ZipkinServiceApplication.java index 49b7543e..51cb371f 100644 --- a/zipkin-service/src/main/java/pl/piomin/microservices/zipkin/ZipkinServiceApplication.java +++ b/zipkin-service/src/main/java/pl/piomin/microservices/zipkin/ZipkinServiceApplication.java @@ -2,15 +2,14 @@ import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; - import zipkin.server.EnableZipkinServer; @SpringBootApplication @EnableZipkinServer public class ZipkinServiceApplication { - public static void main(String[] args) { - SpringApplication.run(ZipkinServiceApplication.class, args); - } + public static void main(String[] args) { + SpringApplication.run(ZipkinServiceApplication.class, args); + } }