testcontainers / testcontainers/testcontainers-python
Compose should use `compose_file_name=[]` or `None` by default
未关闭
还没有人认领这个 Issue。
📦 package: compose
- 主要语言
- Python
- 星标
- 2.3k
- 派生
- 386
- 平均合并
- 4 小时 40 分钟
- 30 天内合并 PR
- 1
描述
For some reason docker-compose up -d works subtly differently than docker-compose up -d -f docker-compose.yml when there are overrides files. I'm not sure why, but passing compose_file_name=[] fixes things for me locally as it doesn't build the -f list.
I think this should be the default, rather than defaulting to a specific file name.
Also, since it actually supports a list, the parameter name should be different so this is obvious
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先定位 compose_file_name 参数以及构建 docker-compose 命令的 -f 列表的代码。将默认行为与显式传入空列表或 None 的情况进行比较,并在决定是否应更改参数名称之前,检查该参数在其他地方的使用方式。完成的标准是默认调用能够一致地处理覆盖文件,并且受支持的列表值能够得到清晰表示。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- docker-compose, python
- 领域
- devops
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100