开发者社区 > 云原生 > 正文

需要ARM64体系结构的映像

我正在尝试使用arm64平台上的seata/seata-docker图像,但它似乎不适用于arm64。

我已经尝试使用docker build-t<image_name>在arm64平台上构建图像命令,但它失败了,arm64上出现以下错误。

Step 5/9 : ADD target/ /seata-server/target ADD failed: file not found in build context or excluded by .dockerignore: stat target/: file does not exist

在使用docker build-t<image_name.>之前命令,我曾试图通过mvn clean install构建Uber Jar,但它失败了,出现了以下错误。

[ERROR] Failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.5.0:compile (default) on project seata-serializer-protobuf: Missing: [ERROR] ---------- [ERROR] 1) com.google.protobuf:protoc:exe:linux-aarch_64:3.3.0 [ERROR] [ERROR] Try downloading the file manually from the project website. [ERROR] [ERROR] Then, install it using the command: [ERROR] mvn install:install-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=3.3.0 -Dclassifier=linux-aarch_64 -Dpackaging=exe -Dfile=/path/to/file [ERROR] [ERROR] Alternatively, if you host your own repository you can deploy the file there: [ERROR] mvn deploy:deploy-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=3.3.0 -Dclassifier=linux-aarch_64 -Dpackaging=exe -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] [ERROR] [ERROR] Path to dependency: [ERROR] 1) io.seata:seata-serializer-protobuf:jar:1.5.2-SNAPSHOT [ERROR] 2) com.google.protobuf:protoc:exe:linux-aarch_64:3.3.0 [ERROR] [ERROR] ---------- [ERROR] 1 required artifact is missing. [ERROR] [ERROR] for artifact: [ERROR] io.seata:seata-serializer-protobuf:jar:1.5.2-SNAPSHOT [ERROR] [ERROR] from the specified remote repositories: [ERROR] central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false) [ERROR] [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :seata-serializer-protobuf

如果为ARM64平台发布seata图像,将非常有帮助。如果需要,我很乐意为您贡献力量。但作为一个开始,你能为我提供一些关于上述mvn相关问题的建议吗?

原提问者GitHub用户odidev

展开
收起
学习娃 2023-06-14 17:00:27 98 0
1 条回答
写回答
取消 提交回答
  • 对于无法打包的问题,可以参考https://seata.io/zh-cn/docs/overview/faq.html https://github.com/seata/seata/blob/develop/distribution/Dockerfile 您可以修改此dockerfile以支持arm64平台

    原回答者GitHub用户a364176773

    2023-06-14 17:30:23
    赞同 展开评论 打赏
问答分类:
问答地址:

阿里云拥有国内全面的云原生产品技术以及大规模的云原生应用实践,通过全面容器化、核心技术互联网化、应用 Serverless 化三大范式,助力制造业企业高效上云,实现系统稳定、应用敏捷智能。拥抱云原生,让创新无处不在。

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载