coder / coder/envbuilder

Full Image Cache instantly completes

Abierto
#495 0 comentarios 0 reacciones 0 asignados Ver en GitHub
bug envbuilder needs-investigation
Lenguaje dominante
Go
Estrellas
300
Forks
64
Merge medio
20 min
PR fusionados (30 d)
1

Descripción

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)

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Empieza con envbuilder.log y reproduce el flujo de Dockerfile y config-file usando caché completa de la imagen, comparando el inicio con cache-hit con un pod manual usando la imagen en caché. Sigue el comportamiento del entrypoint del binario envbuilder después del cache-hit de la imagen completa. Se considera terminado cuando la imagen en caché ejecuta su entrypoint y todos los comandos Dockerfile RUN en lugar de completarse inmediatamente.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
docker, go, kubernetes
Área
build-system, devops, infrastructure
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.