-
Notifications
You must be signed in to change notification settings - Fork 442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to building native image for ARM #1443
Comments
@muuki88 |
I'm happy to help you with implementing this feature😊, but I don't have the time nor the experience or setup to build this 😃 |
@muuki88 Can you describe the steps needed to implement this feature here ? It looks as if there need to extend FROM directive with platform parameter but you are probably aware of other places that should be changed ;) |
I have no real experience with graal + docker and especially not ARM 😅 However the concept for all formats in native packager is always the same
Step 1 should already be available, so it's only part 2. I'll check later what SBT tasks and settings are available. What would the packaging command look like? |
I'm not an expert on GraalVM's native-image, but from what I understand is that the resulting executable is both OS and CPU architecture specific. I've been able to build FROM oraclelinux:8-slim
COPY ./target/graal-native-image/my-application ./app/
CMD ./app/my-application Assuming my understanding is correct of how I hope that helps! |
I would like to build GraalVM native image for ARM architecture from my AMD machine.
It such feature currently supported by native-packager ?
As for now I have tried to use docker image with hash in
GraalVMNativeImagePlugin.generateContainerBuildImage()
what should allow me to pull ARM based docker image.Ex:
GraalVMNativeImagePlugin.generateContainerBuildImage("ghcr.io/graalvm/graalvm-ce:latest@sha256:94a029ea80df5d66e5f49d30a1a4348b654e2cb8ccc7a26ec209691943a2ee8e")
Unfortunately it results in error
Error response from daemon: build tag cannot contain a digest
Information
The text was updated successfully, but these errors were encountered: