From 930a46e2c1db9c0b87f06641bb3b6b8376c51778 Mon Sep 17 00:00:00 2001 From: dingzhaojun Date: Mon, 27 Nov 2023 09:54:52 +0800 Subject: [PATCH 1/3] eclipse-temurin:21-jre --- pom.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pom.xml b/pom.xml index 29587db..5791118 100644 --- a/pom.xml +++ b/pom.xml @@ -150,6 +150,9 @@ 3.4.0 false + + eclipse-temurin:21-jre + svn.youshengyun.com:9923/${project.artifactId}-jib From 392360c69eadaf5f5e64a2e5ee4084ce3bb2f63d Mon Sep 17 00:00:00 2001 From: dingzhaojun Date: Mon, 27 Nov 2023 10:04:14 +0800 Subject: [PATCH 2/3] enable compose --- compose.yml => compose-dev.yml | 0 src/main/resources/application.yml | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename compose.yml => compose-dev.yml (100%) diff --git a/compose.yml b/compose-dev.yml similarity index 100% rename from compose.yml rename to compose-dev.yml diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index a50864a..5415eed 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -66,5 +66,5 @@ spring: allow-circular-references: false docker: compose: - enabled: false - #file: docker-dev.yml + enabled: true + file: compose-dev.yml From 5b9cbe7e6288a683f9d9583f04e8a4bbde06bc3a Mon Sep 17 00:00:00 2001 From: dingzhaojun Date: Mon, 27 Nov 2023 10:55:54 +0800 Subject: [PATCH 3/3] readiness --- compose-dev.yml | 7 +------ pom.xml | 7 ++++--- src/main/resources/application.yml | 6 ++++++ 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/compose-dev.yml b/compose-dev.yml index 21ece88..55b17ed 100644 --- a/compose-dev.yml +++ b/compose-dev.yml @@ -53,12 +53,7 @@ services: - CONSUL_ENABLE_UI=true - CONSUL_HTTP_PORT_NUMBER=8500 ports: - - '8300:8300' - - '8301:8301' - - '8301:8301/udp' - '8500:8500' - - '8600:8600' - - '8600:8600/udp' volumes: - d:/docker-data/consul:/bitnami/consul @@ -90,7 +85,7 @@ services: networks: - y9-share-net ports: - - "9092:9092" + #- "9092:9092" - "9094:9094" environment: - KAFKA_CFG_NODE_ID=0 diff --git a/pom.xml b/pom.xml index 5791118..0bd791d 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.springframework.boot spring-boot-starter-parent - 3.2.0-RC2 + 3.2.0 net.risesoft @@ -43,7 +43,7 @@ 2023.0.0-RC1 - + @@ -98,6 +98,7 @@ org.springframework.cloud spring-cloud-starter-consul-discovery + 4.0.3 diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 5415eed..5d96e45 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -30,6 +30,8 @@ spring: application: name: demo01 cloud: + compatibility-verifier: + enabled: false consul: host: host.docker.internal port: 8500 @@ -68,3 +70,7 @@ spring: compose: enabled: true file: compose-dev.yml + readiness: + #wait: NEVER + wait: ONLY_IF_STARTED + #wait: ALWAYS