CLI attempts to pull "local" Docker images (and fails)
まだ誰も着手していません。
- #144 @awrichar による — マージされずにクローズ
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 42/100
調査の方向性
internal/stacks/stack_manager.go の PullStack から始め、ローカルな Docker 定義を含む manifest.json を使って ff start で問題を再現します。manifest のイメージと blockchain/token プラグインのイメージを追跡し、実際に使用されている Dockers を特定します。ff start が使用されているイメージだけを pull し、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 ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
hyperledger-firefly/cli のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 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
-
cleanup hacktoberfest priority: low skill: good first issue testing
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
hyperledger-labs/fabric-smart-client#2197 ·
メンテナーはふだん 1 日以内に返信
-
New term request
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
geneontology/go-ontology#32791 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
aws/amazon-ecs-agent#5177 ·
メンテナーはふだん 2 日以内に返信
-
release-followup
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
kind/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信