From 0614d92ae65a276d5927bd8ce8f7a767ce7f2d27 Mon Sep 17 00:00:00 2001 From: "daekwon.park" Date: Tue, 26 Aug 2025 14:59:35 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=EB=8F=84=EC=BB=A4=20=EC=9D=B4=EB=AF=B8?= =?UTF-8?q?=EC=A7=80=20=EC=83=9D=EC=84=B1=20=EB=B0=A9=EB=B2=95=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD=20Cloud=20Native=20Buildpacks(CNB)=20->=20Jib?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CNB 에서 arm 빌드가 되지 않아서 Jib 으로 변경 --- build-images.sh | 2 +- pom.xml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/build-images.sh b/build-images.sh index 33b446c7..5f0380dd 100755 --- a/build-images.sh +++ b/build-images.sh @@ -1,4 +1,4 @@ #!/usr/bin/env bash script_path=$(dirname "$0") -./mvnw spring-boot:build-image -Dspring-boot.build-image.imageName=ten1010io/project-controller:0.1.0-SNAPSHOT +./mvnw clean compile jib:dockerBuild -Dimage=ten1010io/project-controller:0.1.0-SNAPSHOT diff --git a/pom.xml b/pom.xml index 8d854b9f..e57c4ad6 100644 --- a/pom.xml +++ b/pom.xml @@ -95,8 +95,9 @@ - org.springframework.boot - spring-boot-maven-plugin + com.google.cloud.tools + jib-maven-plugin + 3.4.6 From 4661a91bd327e62abf1d6692cc9b5a1c8473086c Mon Sep 17 00:00:00 2001 From: "daekwon.park" Date: Tue, 26 Aug 2025 15:04:57 +0900 Subject: [PATCH 2/2] =?UTF-8?q?amd,=20arm=20=EB=B9=8C=EB=93=9C=20=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=20=EB=B6=84=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build-images-arm.sh | 4 ++++ build-images.sh | 2 +- pom.xml | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100755 build-images-arm.sh diff --git a/build-images-arm.sh b/build-images-arm.sh new file mode 100755 index 00000000..5f0380dd --- /dev/null +++ b/build-images-arm.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +script_path=$(dirname "$0") + +./mvnw clean compile jib:dockerBuild -Dimage=ten1010io/project-controller:0.1.0-SNAPSHOT diff --git a/build-images.sh b/build-images.sh index 5f0380dd..33b446c7 100755 --- a/build-images.sh +++ b/build-images.sh @@ -1,4 +1,4 @@ #!/usr/bin/env bash script_path=$(dirname "$0") -./mvnw clean compile jib:dockerBuild -Dimage=ten1010io/project-controller:0.1.0-SNAPSHOT +./mvnw spring-boot:build-image -Dspring-boot.build-image.imageName=ten1010io/project-controller:0.1.0-SNAPSHOT diff --git a/pom.xml b/pom.xml index e57c4ad6..4d9c907f 100644 --- a/pom.xml +++ b/pom.xml @@ -94,6 +94,10 @@ + + org.springframework.boot + spring-boot-maven-plugin + com.google.cloud.tools jib-maven-plugin