Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

devcontainer features test command inside a container with mounted docker socket -> problems with /tmp

Abierto
#923 2 comentarios 4 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
docker, typescript
Área
devops, testing

Línea de trabajo

Empieza con el comando devcontainer features test, especialmente con el manejo de escenarios, y sigue el recorrido de cómo se montan los archivos temporales bajo /tmp en el contenedor de pruebas. Compara el temporaryPath configurable propuesto con la alternativa de copiar los archivos durante la compilación; se considera terminado cuando las pruebas funcionan al ejecutar la CLI dentro de un contenedor con un socket de Docker montado.

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

Descripción

feature-request

The devcontainer features test (especially for scenarios) creates everything needed in a directory in /tmp. When the container is created, this folder is mounted inside the container (probably for the additional files and the verifying .sh file).

This leads to problems when the devcontainer-cli and the test are running inside a container with a mounted docker socket.
The problem is that the /tmp with the correct data is in the container and when creating the test-container and mounting the /tmp, the /tmp from the docker host (outside of the container) is used which does not know the the correct data of course.

I tried to draw this:

/ Docker-Host
├── Docker / Docker Socket
├── container with devcontainer cli
│   ├── workspace
│   │   ├── src
│   │   └── test
│   └── tmp (contains the temporary devcontainer spec)
└── tmp (is mounted when the devcontainer is started)

In some cases this is easy fixable by mounting /tmp from the host to /tmp into the container with the devcontainer cli but sometimes (in some CI scenarios), adding additional mounts is not possible.

My suggestion would be to be able to specify the temporaryPath where all these files are placed. If this path could be specified, it would at least be possible to use some clever symlinking to achieve the same path inside the container with the cli and from the host.

An alternative would be to not need this mount at all and copy all those files during the build of the container into the container so they are directly available.

Lenguaje dominante
TypeScript
Estrellas
3k
Forks
461
Merge medio
18 min
PR fusionados (30 d)
5

Preparar el entorno

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 devcontainers/cli

Todos los issues de devcontainers/cli

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.