Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Support network options on `Network`

オープン
#1,535 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
65/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
docker, node.js, typescript
領域
devtools, testing

調査の方向性

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 の本文から書いたものです。

説明

enhancement minor

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() with driver, enableIpv6 and createNetworkCmdModifier. Go has network.New(ctx, opts...) with WithDriver, WithInternal, WithLabels, WithIPAM and WithAttachable.
  • The constructor's Uuid parameter is in the way of a conventional options argument.

Dependencies

  • Nothing blocks this. It can start now.
主要言語
TypeScript
スター
2.6k
フォーク
274
平均マージ
1日 14時間
マージ済み PR(30日)
44

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

testcontainers/testcontainers-node のほかの issue

testcontainers/testcontainers-node の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。