我已经能够让两种很棒的技术独立工作了。
不幸的是,我不知道如何同时使用它们。
我目前正在笔记本电脑(amd)上构建和测试,然后部署到运行Kubernetes的Raspberri 4 (arm64)上。
为了让这件事起作用,我用了这样的方法:
docker buildx build --platform linux/amd64,linux/arm64 --tag my-registry/my-image:latest --push .在试图瞄准一只手臂之前,我用的是骷髅刀。
是否有任何方法可以继续以多种游戏形式为目标,同时也使用人力资源来构建/部署?如果没有,是否有其他选择的建议?
任何建议/帮助都是非常感谢的,谢谢。
发布于 2020-02-06 03:23:45
找到了丢失的那块。Skaffold具有设置自定义命令的能力,我可以在其中使用buildx。
https://github.com/GoogleContainerTools/skaffold/tree/master/examples/custom
build:
artifacts:
- image: "foo/bar"
context: .
custom:
buildCommand: ./custom-build.shcustom-build.sh
docker buildx build \
--platform linux/arm64 \
--tag $IMAGE \
--push \
$BUILD_CONTEXT发布于 2020-02-05 01:53:17
我认为你需要安装一个驱动程序才能同时使用。
https://medium.com/nttlabs/buildx-kubernetes-ad0fe59b0c64
编辑这里是一个实现示例,包含一个GO qiita.com/J_Shell/items/beb266ef65270217a9ed (请使用翻译程序)
https://stackoverflow.com/questions/60067799
复制相似问题