From f24389171bd8b264a6914f3122090809af7b9a1f Mon Sep 17 00:00:00 2001 From: TakahashiNg <83152264+TakahashiNguyen@users.noreply.github.com> Date: Tue, 28 Apr 2026 02:46:53 +0000 Subject: [PATCH] chore: better image build --- .../src/main/resources/application.properties | 1 + .../src/main/resources/application.properties | 1 + .../src/main/resources/application.properties | 3 +- .../src/test/resources/application.properties | 2 +- pom.xml | 73 ++++++++++--------- 5 files changed, 42 insertions(+), 38 deletions(-) diff --git a/account-service/src/main/resources/application.properties b/account-service/src/main/resources/application.properties index e26a74b..a27293a 100644 --- a/account-service/src/main/resources/application.properties +++ b/account-service/src/main/resources/application.properties @@ -28,6 +28,7 @@ quarkus.native.container-build=true quarkus.native.remote-container-build=true quarkus.native.additional-build-args=--initialize-at-run-time=com.password4j.AlgorithmFinder,--future-defaults=all quarkus.native.resources.includes=com/google/i18n/phonenumbers/data/**/* +quarkus.docker.dockerfile-native-path=src/main/docker/Dockerfile.native-micro # Kafka %prod.mp.messaging.connector.smallrye-kafka.bootstrap.servers=${KAFKA_SERVICE_SERVICE_HOST:host.docker.internal}:9092 diff --git a/eatery-service/src/main/resources/application.properties b/eatery-service/src/main/resources/application.properties index 6652b84..80be2b2 100644 --- a/eatery-service/src/main/resources/application.properties +++ b/eatery-service/src/main/resources/application.properties @@ -25,6 +25,7 @@ quarkus.index-dependency.lib.artifact-id=lib quarkus.native.container-build=true quarkus.native.remote-container-build=true quarkus.native.additional-build-args=--future-defaults=all +quarkus.docker.dockerfile-native-path=src/main/docker/Dockerfile.native-micro # Kafka mp.messaging.connector.smallrye-kafka.bootstrap.servers=${KAFKA_SERVICE_SERVICE_HOST:host.docker.internal}:9092 diff --git a/gateway-service/src/main/resources/application.properties b/gateway-service/src/main/resources/application.properties index be0c229..67c5208 100644 --- a/gateway-service/src/main/resources/application.properties +++ b/gateway-service/src/main/resources/application.properties @@ -10,4 +10,5 @@ quarkus.container-image.additional-tags=latest # Build quarkus.native.container-build=true quarkus.native.remote-container-build=true -quarkus.native.additional-build-args=--future-defaults=all \ No newline at end of file +quarkus.native.additional-build-args=--future-defaults=all +quarkus.docker.dockerfile-native-path=src/main/docker/Dockerfile.native-micro \ No newline at end of file diff --git a/gateway-service/src/test/resources/application.properties b/gateway-service/src/test/resources/application.properties index 9f91177..9dd6ce7 100644 --- a/gateway-service/src/test/resources/application.properties +++ b/gateway-service/src/test/resources/application.properties @@ -5,4 +5,4 @@ quarkus.http.host=0.0.0.0 gateway.jwt.secret=1uZk07Hqu1316z9YqrcSGPTTJDhMWU1ZhFSLBrDQvmU= # App configuration -quarkus.rest-client.account.url=http://account-service:8080 \ No newline at end of file +quarkus.rest-client.account.url=http://account-service:8080 diff --git a/pom.xml b/pom.xml index be08d26..1a50439 100644 --- a/pom.xml +++ b/pom.xml @@ -1,37 +1,38 @@ - - - 4.0.0 - com.drinkool - drinkool - 1.5.15 - pom - - 25 - quarkus-bom - io.quarkus.platform - 3.32.3 + + + 4.0.0 + com.drinkool + drinkool + 1.5.15 + pom - 3.5.4 - - - lib - eatery-service - account-service - gateway-service - - - - - ${quarkus.platform.group-id} - ${quarkus.platform.artifact-id} - ${quarkus.platform.version} - pom - import - - - - + + 25 + quarkus-bom + io.quarkus.platform + 3.32.3 + 3.5.4 + + + + lib + eatery-service + account-service + gateway-service + cart-service + + + + + + ${quarkus.platform.group-id} + ${quarkus.platform.artifact-id} + ${quarkus.platform.version} + pom + import + + + + \ No newline at end of file