我正在尝试使用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
对于无法打包的问题,可以参考https://seata.io/zh-cn/docs/overview/faq.html https://github.com/seata/seata/blob/develop/distribution/Dockerfile 您可以修改此dockerfile以支持arm64平台
原回答者GitHub用户a364176773
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
阿里云拥有国内全面的云原生产品技术以及大规模的云原生应用实践,通过全面容器化、核心技术互联网化、应用 Serverless 化三大范式,助力制造业企业高效上云,实现系统稳定、应用敏捷智能。拥抱云原生,让创新无处不在。