RFE: common interface to expose host's os-release to container-like runtimes

Aperta
#1,051 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
20/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
linux

Direzione di ricerca

L’issue non indica alcun file, test o punto di ingresso di AppImageKit. Inizia dalla discussione systemd collegata e dalle pull request RFC per nspawn, portabled e Flatpak; il lavoro sarebbe concluso quando fosse stata definita un’interfaccia comune per esporre le informazioni sul sistema operativo host e su quello guest.

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

Descrizione

The following was the start of a discussion regarding the possibility of establishing a common interface for exposing the host's os-release via ~container runtimes:

We find ourselves in a situation where application running
containerized (specifically as portable services, although this issue
is general) need to either find information about the host, or alter
their behaviour depending on the host's flavour.
At the same time, applications also need to find information about the
guest's OS, so simply bind mounting /etc/os-release from the host is
not enough. We need both.

Reference: https://lists.freedesktop.org/archives/systemd-devel/2020-April/044378.html

The desired goal is to establish a common interface to provide this information, so that applications can rely on it without having to infer what runtime manager they are spawned by.

There are many ways to implement this, the discussion for the nspawn/portabled cases gravitated toward using prefixed environment variables - the advantage being that it's the most convenient way for applications, since they can trivially have both sets of information at the same time (eg: source /etc/os-release and then VERSION_ID is the runtime's version, service_host_VERSION_ID is the host's version).

RFC patches for nspawn/portabled/flatpak:

https://github.com/systemd/systemd/pull/15891
https://github.com/flatpak/flatpak/pull/3640

Thoughts?

Lingua principale
Nessun dato sulla lingua
Stelle
9.5k
Fork
586
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di AppImage/AppImageKit

Tutte le issue di AppImage/AppImageKit

Issue simili

Altre issue su DevOps

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.