Akka serverless ARM architecture images fail to deploy

When I deploy the Akka serverless cart demo application it fails to start.

I’m running the tutorial commands, but I’m on an M1 Mac.

The following is the only error in the log:

standard_init_linux.go:228: exec user process caused: exec format error

Looks like this may be the issue:

I looked further into the maven docker plugin it doesn’t support multi arch yet.

Is there another way to do this without manually building the image?

We have a issue tracking this in the Java SDK issue tracker here (with a link to an upstream improvement request): Document how to use codegen maven archetype with Apple M1 architecture · Issue #78 · lightbend/akkaserverless-java-sdk · GitHub

For Scala it is possible to let the sbt docker plugin prepare the docker image contents and then build it manually with docker buildx (also mentioned in that issue) but I am not aware of a way to do the same with the fabric8 docker maven plugin.

1 Like