bootc-dev / bootc-dev/bootc

install: Add `--pull` for LBIs

Aperta
#846 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
area/install area/logically-bound-images
Lingua principale
Rust
Stelle
2.3k
Fork
230
Merge medio
3g 3h
PR unite (30g)
36

Descrizione

Today for install we require the base image *and* LBIs to be in the source root container storage.

Having them required to be in the same container storage I think is probably the correct default as it means `bootc install` is not itself ever in the business of pulling anything.

But this hurts ergonomics for the `to-existing-root` type cases because almost always LBIs won't be present and it's logistically annoying. I think we should add something like `bootc install --pull` which would default to automatically fetching LBIs to the *target* root.

Also as I mentioned elsewhere I think it'd also be useful to have something like `bootc image list --type=logical` to start which would print the images so one could do this:

```
podman pull quay.io/examplecorp/bootc:latest
podman run --rm quay.io/examplecorp/bootc:latest bootc image list --type=logical | xargs podman pull
podman run --privileged --rm quay.io/examplecorp/bootc:latest bootc install to-existing-root
```

Note that in this flow it's the host `podman` that's responsible for fetching images always consistently so we pick up whatever pull secrets (e.g.) are needed from there.

If we have the `bootc install` in the container image need to pull, then suddenly we're in the problem domain of needing to proxy all the pull secret configuration, which is something I'd hoped to avoid. OTOH for cases that embed the pull secret in the image sufficient for the target registry, that's fine.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Iniziate con il comando `bootc install` e con l’entry point proposto `bootc image list --type=logical`; nell’issue non sono indicati file o test specifici. Chiarite in che modo `--pull` debba recuperare gli LBI nella root di destinazione preservando il comportamento di pull-secret dell’host, quindi definite cosa costituisce il completamento dei flussi proposti di installazione e di elenco delle immagini.

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

Valutazione

Stack tecnologico
rust
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
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.