Bug: Running `.exec` on `SqlServerContainer` instance hangs indefinitely
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 42/100
調査の方向性
SqlServerContainer の exec エントリポイントから開始し、issue にある正確な sqlcmd CREATE TABLE コマンドを再現して、動作する SELECT 1 の例と比較します。CREATE TABLE コマンドが、コンテナ内で実行した場合と同様に、exec を通じて正常に終了すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
I am trying to create a table within a SqlServer container during start up. I am running the necessary command via the exec method, but said method just hangs and never exits.
Additional info: When bashing into the container and running the command, it works just fine and the process does not hang. Furthermore, running a different SQL query via the exec method such as SELECT 1 works as well.
To Reproduce
with SqlServerContainer(image="mcr.microsoft.com/mssql/server:2022-CU12-ubuntu-22.04") as container:
container.exec(
"/opt/mssql-tools/bin/sqlcmd -U SA -P 1Secure*Password1 -d tempdb -Q 'CREATE TABLE test_table (id INT PRIMARY KEY)'"
)
Runtime environment
OS: Windows 11
Python version: 3.12.10
Docker version: 28.4.0, build d8eb465
Testcontainers version: 4.13.2
- 主要言語
- Python
- スター
- 2.3k
- フォーク
- 397
- 平均マージ
- 8日 16時間
- マージ済み PR(30日)
- 5
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
testcontainers/testcontainers-python のほかの issue
-
Feature: Stream bytes out on copy_from_container対応中かも @archit15singh が 12 日前に担当しました。 オープン🚀 enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
-
Bug: HttpWaitStrategy ignores response predicates for accepted HTTP error statuses対応中かも @PranavMulakala が 41 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
-
Bug: LogMessageWaitStrategy: a container that exits before its message raises without its logs, and __enter__ then removes the container対応中かも @granzer69 が 42 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
testcontainers/testcontainers-python#1086 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
testcontainers/testcontainers-python#578 · コメント 5 件 ·
testcontainers/testcontainers-python の issue をすべて見る
似ている issue
-
新功能建议
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
Mai-with-u/MaiBot#2583 ·
メンテナーはふだん 1 日以内に返信
-
area-integrations
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
[New]: JambaオープンMatch Play
難易度 1/5 1時間未満 初心者へのやさしさ 63/100
privacyguides/verified-apps#9224 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: The docs check fails to install the Mintlify CLI when it runs right after a `mint` releaseオープンchore upstream
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
MemMachine/MemMachine#2032 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100