coder / coder/envbuilder

Full Image Cache instantly completes

Đang mở
#495 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug envbuilder needs-investigation
Ngôn ngữ chính
Go
Star
300
Fork
64
Merge trung bình
20 phút
Pull request đã merge (30 ngày)
1

Mô tả

We are running envbuilder to compile an image from a dockerfile and the config file.

Run without caching everything works as expected its just slow

Run with a cache repo, it creates the image, pushes the image and runs correctly ONCE.

Subsequent launches with the cache enabled will do the usual file extractions and start the image but the layers will not be correct, some of the run commands seemed to not have executed. For example a simple rm in a run command either did not run or the files were recreated by the base layer.

Run with full image caching the image gets a dry run and found in the cache (as long as i did it once with the layer cache)
Unfortunately the image immediately completes after that and the pod gets restarted by the deployment.

When i manually create a pod with the image from the cache repo it works, the envbuilder binary exists and all run commands got executed correctly.

Heres the log, everything looks perfectly fine if only it would execute the entrypoint properly
[envbuilder.log](https://github.com/user-attachments/files/25622697/envbuilder.log)

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Bắt đầu với envbuilder.log và tái hiện luồng Dockerfile cùng config-file bằng cách sử dụng bộ nhớ đệm đầy đủ của image, so sánh lần khởi chạy có cache-hit với một pod thủ công sử dụng image đã được cache. Theo dõi hành vi entrypoint của binary envbuilder sau cache-hit của image đầy đủ. Được xem là hoàn tất khi image đã được cache chạy entrypoint của nó và tất cả các lệnh Dockerfile RUN thay vì hoàn tất ngay lập tức.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
docker, go, kubernetes
Lĩnh vực
build-system, devops, infrastructure
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.