CLI attempts to pull "local" Docker images (and fails)
还没有人认领这个 Issue。
- #144 来自 @awrichar —— 已关闭,未合并
评估
调研方向
从 internal/stacks/stack_manager.go 中的 PullStack 开始,使用包含本地 Docker 定义的 manifest.json 通过 ff start 重现该问题。跟踪 manifest 镜像以及 blockchain/token 插件镜像,以确定实际使用了哪些 Dockers。完成标准是 ff start 只拉取已使用的镜像,同时保留 manifest 版本,并跳过标记为 local 的镜像。
由索引模型根据 Issue 内容生成。
描述
If you point the CLI to a local manifest with -m manifest.json, and that manifest contains a local Docker definitions such as:
"tokens-erc1155": {
"image": "ghcr.io/hyperledger/firefly-tokens-erc1155",
"local": true
}
When running ff start, the CLI still pulls the latest image from the server, overwriting the local image.
This seems to be due to a duplication in the PullStack method here. It first iterates the images defined in the manifest, and does properly skip those tagged as local. But then it goes on to pull the latest for all images defined by the blockchain and token plugins, defeating the purpose of the earlier loop.
Side node: because it first pulls all the images defined in the manifest, it will pull images even if you're ultimately not using them (ie it pulls fabconnect even if your blockchain provider is Ethereum).
Conclusion from all this: we need better "pull" logic to intersect the info from these two places - it should only pull the Dockers actually used in the stack, but it should also honor the versions and "local" flag defined for those images in the manifest.
- 主要语言
- Go
- 星标
- 66
- 派生
- 64
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
hyperledger-firefly/cli 的其他 Issue
-
难度 5/5 一周以上 新手友好度 35/100
hyperledger-firefly/cli#357 ·
-
bug good first issue
难度 3/5 1-2 天 新手友好度 45/100
hyperledger-firefly/cli#343 · 1 条评论 ·
-
bug
难度 4/5 3-5 天 新手友好度 25/100
hyperledger-firefly/cli#339 · 7 条评论 ·
-
bug Windows WSL
难度 3/5 1-2 天 新手友好度 25/100
hyperledger-firefly/cli#335 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
hyperledger-firefly/cli#334 · 2 条评论 ·
查看 hyperledger-firefly/cli 的全部 Issue
相似的 Issue
-
automation models
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
QuantumNous/new-api#7930 ·
维护者通常 1 天内回复
-
area/gateway kind/bug
难度 2/5 1-3 小时 新手友好度 74/100
vllm-project/aibrix#3226 · 1 条评论 ·
维护者通常 1 天内回复
-
kind/bug kind/flake
难度 2/5 1-3 小时 新手友好度 73/100
kubernetes-sigs/kueue#17518 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复