testcontainers / testcontainers/testcontainers-java

Expose a way to manually inspect and terminate reuse containers

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

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

主要言語
Java
スター
8.7k
フォーク
1.9k
平均マージ
2日 17時間
マージ済み PR(30日)
9

説明

Something similar to being able to

  • (optional) add "day of creation" label, which makes containers reusable within same day only
  • docker ps --filter "label=org.testcontainers=true" --filter "label=mylabel=abc"
  • inspect labels and other properties
  • selectively terminate containers

This could currently be done by running docker commands from shell script or similar, but testcontainers have various docker discovery strategies which don't seem to be currently exposed, manual command may fail to execute or even connect to a different docker daemon.

Also adding "reuse=true" when container was created with reuse flag could be a good idea to ease going through zombies, and maybe to completely separate reuse and non-reuse containers

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

調査の方向性

公開されている Docker の検出戦略と、既存の再利用コンテナの処理を確認することから始めます。要求されている docker ps のフィルタリング、ラベルの検査、選択的な終了、再利用ラベルを現在の API と比較します。Testcontainers が使用するものと同じ Docker 接続を通じて、ユーザーが再利用可能なコンテナを検査および管理でき、再利用コンテナと非再利用コンテナを区別できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
docker, java
領域
devops, testing
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

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

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