coder / coder/envbuilder

Fallback not working when invalid Dockerfile in coder workspace

未关闭
#374 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Go
星标
300
派生
64
平均合并
20 分钟
30 天内合并 PR
1

描述

When I use devcontainer in coder (kubernetes) from this template:

[template_workspace_coder.txt](https://github.com/user-attachments/files/17175483/template_workspace_coder.txt)

And change the Dockerfile to this and restart:
Dockerfile:
INVALID
FROM qmcgaw/godevcontainer

Then envbuilder is not detecting the failure and is not reverting to the fallback image
![image](https://github.com/user-attachments/assets/434f9f89-f8d1-4d01-8c49-7c4df05777a7)

![image](https://github.com/user-attachments/assets/1425d78b-51cd-4e10-bbee-1c966358df13)

贡献指南

这个仓库没有索引到贡献指南

调研方向

在 coder Kubernetes workspace 中使用附加的模板重现失败,将 Dockerfile 修改为在重启前以 INVALID 开头。跟踪 envbuilder 对 Dockerfile 失败的处理以及 fallback image 的选择。当检测到无效 Dockerfile 导致的失败,并且 workspace 恢复为 fallback image 时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
docker, go, kubernetes
领域
build-system, devops
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。