英文:
Build and deploy Dockerfile with ArgoCD
问题
我正在尝试在 ArgoCD 中加载一个应用程序,对于存储在注册表中的图像一切正常;但是在部署之前是否可以应用一个 Dockerfile 到图像上,通过 helm chart/yaml 应用程序告诉 ArgoCD 呢?
在 ArgoCD 文档中,似乎暗示这是可能的:
https://argo-cd.readthedocs.io/en/stable/operator-manual/custom_tools/#byoi-build-your-own-image
英文:
I am trying to load an application in ArgoCD, and for images stored in the registry all fine; but could it be possible to apply a Dockerfile to an image before deploying it, telling it to ArgoCD via helm chart/yaml app?
In the ArgoCD documentation, it seems to suggest that it's possible:
https://argo-cd.readthedocs.io/en/stable/operator-manual/custom_tools/#byoi-build-your-own-image
答案1
得分: 0
不,这不可能。 ArgoCD 不会自行构建图像,这不是它的责任。
您必须构建图像并将其发布到某个地方,然后通过 ArgoCD 部署它们。就像您在没有 ArgoCD 的情况下一样:Kubernetes 不会构建图像,它需要从某个地方拉取图像。
您提到的链接是用于构建自定义的 ArgoCD 图像。
英文:
No it's not possible. ArgoCD won't build images on its own, it's not its responsibility.
You have to build images and publish them somewhere to deploy them via ArgoCD. Like you would without ArgoCD: Kubernetes won't build images, it need to pull them from somewhere.
The link you are referring to is for building a custom ArgoCD image.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论