Add `dockerComposeArgs` to allow passing `--env-file` to `dockerComposeFile`
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 68/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- docker, docker-compose
- 领域
- devops
调研方向
首先追踪 devcontainer.json 如何处理 dockerComposeFile,以及 Docker Compose 命令如何组装。检查 issue 中描述的 docker-compose.yaml 区别,然后验证 dockerComposeArgs 是否可以传递 --env-file,以及最终的 Compose 解析是否使用所提供的环境文件。
由索引模型根据 Issue 内容生成。
描述
docker compose up accepts a --env-file to point to a .env file and set its contents as env vars, which are available when parsing the docker-compose.yaml. note that this is different from the env_file config option in docker-compose.yaml, which only sets env vars inside the container.
when providing dockerComposeFile in devcontainer.json there is currently no way to pass --env file.
suggestion (following https://github.com/microsoft/vscode-remote-release/issues/4885#issuecomment-2408558170):
{
"dockerComposeFile": ["a.compose.yaml", "b.compose.yaml"],
"dockerComposeArgs": ["--env-file custom.env"]
}
- 主要语言
- 没有语言数据
- 星标
- 5.8k
- 派生
- 509
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
devcontainers/spec 的其他 Issue
-
CLI sorts Feature options fewest-first, against spec可能已有人在做 @nozaq 于 112 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
devcontainers/spec#755 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
devcontainers/spec#754 · 1 条评论 · 2 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 64/100
devcontainers/spec#735 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 62/100
devcontainers/spec#579 · 1 条评论 ·
-
Elbanko未关闭
难度 5/5 一周以上 新手友好度 5/100
devcontainers/spec#784 · 2 个 reaction ·
查看 devcontainers/spec 的全部 Issue
相似的 Issue
-
[Bug] K8s reconcile still resets explicit 0 to defaults for response_api, memory and flow state可能已有人在做 @Bevisy 今天认领。 未关闭needs-acceptance
难度 2/5 1-3 小时 新手友好度 87/100
vllm-project/semantic-router#5998 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
lobaro/restic-backup-docker#114 ·
-
NVIDIA windows
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
good first issue size: XS
难度 2/5 1-3 小时 新手友好度 75/100
fells-code/seamless-glance#151 ·
维护者通常 1 天内回复