coder / coder/envbuilder

Full Image Cache instantly completes

Ouverte
#495 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
bug envbuilder needs-investigation
Langage dominant
Go
Étoiles
300
Forks
64
Merge moyen
20 min
PR mergées (30 j)
1

Description

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)

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Commencez par envbuilder.log et reproduisez le flux Dockerfile et config-file avec une mise en cache complète de l’image, en comparant le lancement avec cache-hit à un pod manuel utilisant l’image mise en cache. Suivez le comportement de l’entrypoint du binaire envbuilder après le cache-hit de l’image complète. C’est terminé lorsque l’image mise en cache exécute son entrypoint et toutes les commandes Dockerfile RUN au lieu de se terminer immédiatement.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
docker, go, kubernetes
Domaine
build-system, devops, infrastructure
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.