coder / coder/envbuilder

Full Image Cache instantly completes

オープン
#495 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug envbuilder needs-investigation
主要言語
Go
スター
300
フォーク
64
平均マージ
20分
マージ済み PR(30日)
1

説明

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)

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Start with envbuilder.log and reproduce the Dockerfile plus config-file flow using full image caching, comparing the cache-hit launch with a manual pod using the cached image. Trace the envbuilder binary's entrypoint behavior after the full-image cache hit. Done means the cached image runs its entrypoint and all Dockerfile RUN commands instead of immediately completing.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
docker, go, kubernetes
領域
build-system, devops, infrastructure
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。