This is an automated email from the ASF dual-hosted git repository.

taskain pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git


The following commit(s) were added to refs/heads/develop by this push:
     new f79891b08 FINERACT-1724  - Add support for M1/M2 or other ARM64. 
Docker image will be based on AMR64 images, for the rest of the architectures 
it falls back to amd64.
f79891b08 is described below

commit f79891b084277810cf74c5eaaaa26b5531b56bb2
Author: Peter Bagrij <[email protected]>
AuthorDate: Fri Oct 13 17:13:43 2023 +0200

    FINERACT-1724
     - Add support for M1/M2 or other ARM64. Docker image will be based on 
AMR64 images, for the rest of the architectures it falls back to amd64.
---
 custom/docker/build.gradle     | 6 ++++++
 fineract-provider/build.gradle | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/custom/docker/build.gradle b/custom/docker/build.gradle
index 562857b36..8938e3d32 100644
--- a/custom/docker/build.gradle
+++ b/custom/docker/build.gradle
@@ -25,6 +25,12 @@ apply from: 
"${rootDir}/buildSrc/src/main/groovy/org.apache.fineract.dependencie
 jib {
     from {
         image = 'azul/zulu-openjdk-alpine:17'
+        platforms {
+            platform {
+                architecture = 
System.getProperty("os.arch").equals("aarch64")?"arm64":"amd64"
+                os = 'linux'
+            }
+        }
     }
 
     to {
diff --git a/fineract-provider/build.gradle b/fineract-provider/build.gradle
index 2212469ff..c767aa1a3 100644
--- a/fineract-provider/build.gradle
+++ b/fineract-provider/build.gradle
@@ -244,6 +244,12 @@ bootJar {
 jib {
     from {
         image = 'azul/zulu-openjdk-alpine:17'
+        platforms {
+            platform {
+                architecture = 
System.getProperty("os.arch").equals("aarch64")?"arm64":"amd64"
+                os = 'linux'
+            }
+        }
     }
 
     to {

Reply via email to