Support network options on `Network`
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 65/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- docker, node.js, typescript
调研方向
Start with packages/testcontainers/src/network/network.ts and read how Network.start() builds the network options and how GenericContainer implements builder methods. Check the existing network tests and run them to understand coverage for names, drivers, IPv6, labels, and IPAM. Done means callers can configure the requested network settings through Network while existing tests still pass.
由索引模型根据 Issue 内容生成。
描述
What happens
new Network() takes no options. Every setting is hardcoded in Network.start():
Driver: "bridge",
Internal: false,
Attachable: false,
Ingress: false,
EnableIPv6: false,
CheckDuplicate: true,
The name is always a random UUID and the labels are fixed. The constructor's only parameter is a Uuid used by tests.
Things that cannot be done today:
- an internal network, to test behaviour without outbound access
- IPv6
- a custom driver, or driver options
- a fixed subnet (IPAM)
- a readable name or extra labels
Expected
Builder methods on Network in the same style as GenericContainer, for example withName, withDriver, withInternal, withIpv6, withLabels.
Where
packages/testcontainers/src/network/network.ts.
Notes
- Java has
Network.builder()withdriver,enableIpv6andcreateNetworkCmdModifier. Go hasnetwork.New(ctx, opts...)withWithDriver,WithInternal,WithLabels,WithIPAMandWithAttachable. - The constructor's
Uuidparameter is in the way of a conventional options argument.
Dependencies
- Nothing blocks this. It can start now.
- 主要语言
- TypeScript
- 星标
- 2.6k
- 派生
- 278
- 平均合并
- 1 天 11 小时
- 30 天内合并 PR
- 61
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
testcontainers/testcontainers-node 的其他 Issue
-
enhancement minor
难度 2/5 1-3 小时 新手友好度 74/100
testcontainers/testcontainers-node#1539 ·
维护者通常 1 天内回复
-
enhancement minor
难度 2/5 1-3 小时 新手友好度 82/100
testcontainers/testcontainers-node#1533 ·
维护者通常 1 天内回复
-
enhancement minor
难度 2/5 1-3 小时 新手友好度 77/100
testcontainers/testcontainers-node#1531 ·
维护者通常 1 天内回复
-
enhancement minor
难度 2/5 1-3 小时 新手友好度 76/100
testcontainers/testcontainers-node#1529 ·
维护者通常 1 天内回复
-
enhancement minor
难度 2/5 1-3 小时 新手友好度 78/100
testcontainers/testcontainers-node#1528 ·
维护者通常 1 天内回复
查看 testcontainers/testcontainers-node 的全部 Issue
相似的 Issue
-
bug require-triage
难度 2/5 1-3 小时 新手友好度 72/100
expressjs/expressjs.com#2549 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 83/100
umami-software/umami#4686 · 1 条评论 ·
维护者通常 2 天内回复
-
[Bug]: Device screenshot fails with 500 on iPhone Duo (Xcode 27.2): serve-sim calls simctl without --display可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 66/100
pingdotgg/t3code#24900 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
inu-appcenter/UNIDorm-web#411 ·
维护者通常 1 天内回复
-
🐛 bug
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 2 天内回复