#Bal build - Java exec error (for ARM platform)

1 messages · Page 1 of 1 (latest)

opaque moss
#

Hi team,

Got a k8s cluster setup on ubuntu 22.04 on raspberry 4 - arm - platform.

I have develop a small service on my win10 computer, like in the official documentation : https://ballerina.io/learn/deploy-ballerina-on-kubernetes/

When apply the yaml file, pod log the following issue : /opt/java/openjdk/bin/java: exec format error

(I have also try with graalvm build)

I think its because the service builds with x64 platorm and not compatible with ARM.
Does I'm right ?

If it's right, there is a workaround ?

Let’s Dockerize your Ballerina service and deploy it on Kubernetes.

jovial palm
#

What is your Ballerina version?

opaque moss
jovial palm
opaque moss
#

Not a bad idea 😉
I will try in few hours and post the result here !
Thanks

opaque moss
#

Hi @jovial palm ,
Recreating a new app in 2201.12.4 still give the same issue,
With native build or graalvm build 😦

"exec /opt/java/openjdk/bin/java: exec format error"

#

If I look into the image layer you provides, I can see at the 1st instruction :
ADD alpine-minirootfs-3.20.3-aarch64.tar.gz / # buildkit

If I look into my image layer, I can see instead at 1st instruction :
ADD alpine-minirootfs-3.20.3-x86_64.tar.gz / # buildkit

I think is the issue, but I'm not sure

opaque moss
#

Hi Team,
There is an official distribution of ballerina for ARM plateform ?

jovial palm