devcontainers / devcontainers/cli

Error ENOENT occurs with compose file containing `dockerfile_inline` field.

Aperta
#765 1 commento 1 reazione 0 assegnatari Vedi su GitHub
feature-request
Lingua principale
TypeScript
Stelle
3k
Fork
457
Merge medio
13h 17m
PR unite (30g)
6

Descrizione

This demo has no reference of docker file but still the cli asks for the `Dockerfile` at default path.
https://gist.github.com/ryuujo1573/95d5c5a3069d0493594e606a8140f8ae

I've quickly scanned the lines and the cause may be this part asking for the non existing file.
https://github.com/devcontainers/cli/blob/09e9821598a056e8d11dfd41e05ccbf370d57562/src/spec-node/dockerCompose.ts#L161-L165

The error disappears when using image directly rather than building from `dockerfile_inline`.

i.e. Is this a bug? or is there something that I messed up?

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start with the demo in the linked gist and inspect src/spec-node/dockerCompose.ts around lines 161-165. Reproduce the ENOENT using the compose file with dockerfile_inline, then compare it with the image-based configuration. Done means the inline Dockerfile configuration no longer requests a missing default Dockerfile and completes without ENOENT.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
docker, typescript
Ambito
cli, devops
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.