testcontainers / testcontainers/testcontainers-java
Ability to specify the image pull policy in the DockerComposeContainer
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Java
- Estrellas
- 8.7k
- Forks
- 1.9k
- Merge medio
- 2 d 17 h
- PR fusionados (30 d)
- 9
Descripción
Hi!
I suggest adding the ability to specify the image pull policy to DockerComposeContainer. There is currently no way to tell DockerComposeContainer to pull the latest version of images from the remote repository when the image is already present in the local repository.
I believe that we can follow the analogy with the one implemented in org.testcontainers.containers.GenericContainer and add the method withImagePullPolicy to the DockerComposeContainer. In this case, the pull policy will be applied to all images that are found in docker-compose config files.
An alternative option would be, for example, specifying the image pull policy for individual services.
I am ready to implement this feature and await feedback.
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza con DockerComposeContainer y compara la implementación y la API de GenericContainer para image-pull-policy. Rastrea cómo se gestionan las imágenes de la configuración de Docker Compose y, después, define y prueba el comportamiento de la política solicitado para esas imágenes, incluido si se aplica globalmente o por servicio.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- docker, docker-compose, java
- Área
- devops, testing
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100