coder / coder/envbuilder

Fallback not working when invalid Dockerfile in coder workspace

Open
#374 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
300
Forks
64
Avg merge
20m
Merged PRs (30d)
1

Description

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)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the failure with the attached template in a coder Kubernetes workspace, changing the Dockerfile to begin with INVALID before restarting. Trace envbuilder's Dockerfile failure handling and fallback-image selection. Done means the invalid Dockerfile failure is detected and the workspace reverts to the fallback image.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go, kubernetes
Domain
build-system, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.