testcontainers / testcontainers/testcontainers-java
Ability to specify the image pull policy in the DockerComposeContainer
还没有人认领这个 Issue。
- 主要语言
- Java
- 星标
- 8.7k
- 派生
- 1.9k
- 平均合并
- 2 天 17 小时
- 30 天内合并 PR
- 9
描述
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.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 DockerComposeContainer 开始,比较 GenericContainer 的 image-pull-policy 实现和 API。跟踪 Docker Compose 配置中的镜像是如何处理的,然后为这些镜像定义并测试所请求的策略行为,包括该策略是全局应用还是按服务应用。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- docker, docker-compose, java
- 领域
- devops, testing
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100