现有执行情况:
要将Lambdas移动到Graviton2实例:-
'./native-executable: cannot execute binary file'1. Change graalvm setup on Github to arm64 base by using [DeLaGuardo/setup-graalvm](https://github.com/DeLaGuardo/setup-graalvm) and then getting the following error: `cannot execute binary file: Exec format error Error: Process completed with exit code 126.`
2. Tried Graalvm package install & install native image, getting java11-aarch64/x64/bin/gu: cannot execute `binary file: Exec format error`.
3. Tried [run-on-arch package](https://github.com/uraimo/run-on-arch-action) but it gives me an error of `'Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?'`
4. Also getting `'mvn command not found'` when I try to create a build without Graalvm.因此,简单地改变' Arm64‘的体系结构值不足以在基于Graviton2的AWS上运行本机映像&许多与Graviton2-Java-Arm64堆栈有关的迁移问题。
如果有人能帮我摆脱这一瓶颈,我将不胜感激。
发布于 2022-05-25 16:11:08
GraalVM在21.0版时确实支持arm64 https://www.graalvm.org/22.0/reference-manual/native-image/ARM64/。
mvn。对于aarch64 https://www.graalvm.org/22.0/docs/getting-started/linux-aarch64/,这里也有一些步骤
发布于 2022-06-13 20:05:29
从您发布的错误来看,看来停靠程序可能没有足够的资源来编译本机可执行文件。
如果可能的话,我会再次检查您的GitHub操作配置并添加更多内存。
如果您使用AWS运行时接口客户端作为解决方案的一部分,则需要2.1.1版本。这是第一个支持aarch64的版本。
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-lambda-java-runtime-interface-client</artifactId>
<version>2.1.1</version>
</dependency>https://stackoverflow.com/questions/72379443
复制相似问题