CLI attempts to pull "local" Docker images (and fails)
Chưa có ai nhận issue này.
- #144 của @awrichar — đã đóng, không merge
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 42/100
Hướng nghiên cứu
Bắt đầu tại internal/stacks/stack_manager.go, ở PullStack, và tái hiện vấn đề bằng ff start cùng một manifest.json chứa định nghĩa Docker cục bộ. Theo dõi các image trong manifest và các image của plugin blockchain/token để xác định những Docker nào thực sự được sử dụng. Hoàn tất khi ff start chỉ pull các image được sử dụng, giữ nguyên các phiên bản trong manifest và bỏ qua các image được đánh dấu là local.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Go
- Star
- 66
- Fork
- 64
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của hyperledger-firefly/cli
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
hyperledger-firefly/cli#357 ·
-
bug good first issue
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
hyperledger-firefly/cli#343 · 1 bình luận ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
hyperledger-firefly/cli#339 · 7 bình luận ·
-
bug Windows WSL
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
hyperledger-firefly/cli#335 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
hyperledger-firefly/cli#334 · 2 bình luận ·
Tất cả issue của hyperledger-firefly/cli
Issue tương tự
-
kind/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
kubevirt/kubevirt#19559 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug raised-by:verifier
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
medici-finance/assay#3817 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
automation models
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
gtsteffaniak/filebrowser#3244 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
QuantumNous/new-api#7930 ·
Maintainer thường phản hồi trong vòng 1 ngày