devcontainers / devcontainers/spec
Add support for blocking 'entrypoints'
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 5.7k
- Fork
- 496
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
As the `entrypoints` are long lived, the `entrypoint` scripts runs in the background. Hence, this is not a blocking script for the container startup.
Can we add a new semantics to have "blocking" entrypoints that the CLI waits for?
Scenario: We have seen flakiness in docker startups for docker-in-docker Feature where docker is not running in the container. See https://github.com/devcontainers/features/issues/634 and https://github.com/devcontainers/features/issues/660.
https://github.com/devcontainers/features/pull/669 adds few retry mechanisms to attempt to fix this issue. `/usr/local/share/docker-init.sh` which starts/retries dockerd is added to the `entrypoint` command. This command runs in the background and is not a blocking script for the container startup. Since it's in the background, `onCreateCommand/postCreateCommand/postStartCommand` could all start executing before docker is fully running. If it takes docker too long, that could introduce flakiness in those lifecycle scripts. Hence, it would be great to have some way of adding a blocking entrypoint to ensure dockerd is ready for the container (including the ^ lifecycle scripts)
// cc @chrmarti
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia tracciando la gestione da parte della CLI dei comandi di entrypoint e la sequenza dei comandi del ciclo di vita descritta nell’issue. Esamina come viene usato /usr/local/share/docker-init.sh per Docker-in-Docker e come vengono pianificati onCreateCommand, postCreateCommand e postStartCommand. Il lavoro è completato quando la specifica definisce chiaramente il comportamento di blocco dell’entrypoint e la CLI attende adeguatamente prima dell’esecuzione dei comandi del ciclo di vita.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- docker
- Ambito
- cli
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100