testcontainers / testcontainers/testcontainers-java

Docker Compose support doesn't see local Docker images

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

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

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

説明

I have a project where I've attempted to do the following:

  1. Build an image of the project's application, locally (without pushing into a registry);
  2. Set up an integration test suite that runs after the image has been built;
  3. Have a test case in that suite that uses TestContainer's Compose support to launch a composition that uses the image from step 1.

This however doesn't work, because TestContainers runs Compose inside a container, and it evidently doesn't see the image that's locally built on step 1.

Another symptom of this same problem is that the Compose container, every time it runs, pulls public images afresh from Docker Hub even though they are locally cached on the Docker host.

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

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

はじめの一歩

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

調査の方向性

この issue にはソースファイルやテストが記載されていません。まず、ローカルでビルドしたイメージとキャッシュ済みの Docker Hub イメージを使って Compose のサポートフローを再現し、その後、Compose コンテナがどのように起動されるかを追跡してください。Compose がローカルホストのイメージを使用でき、すでに利用可能なイメージを不要に pull しなければ完了です。

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

評価

技術スタック
docker, docker-compose, java
領域
devops, testing
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

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

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