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

Abierto
#1,051 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
20/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
linux

Línea de trabajo

El issue no menciona archivos, pruebas ni puntos de entrada de AppImageKit. Empieza por la discusión de systemd enlazada y las pull requests de RFC para nspawn, portabled y Flatpak; el trabajo estaría terminado cuando se haya establecido una interfaz común para exponer información tanto del sistema operativo host como del sistema operativo invitado.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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?

Lenguaje dominante
Sin datos de lenguaje
Estrellas
9.5k
Forks
586
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de AppImage/AppImageKit

Todos los issues de AppImage/AppImageKit

Issues similares

Más issues de DevOps

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.