testcontainers / testcontainers/testcontainers-java

Usage of `ImageFromDocker` not intuitive if `withDockerfile` is used

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

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

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

説明

When defining a GenericContainer using ImageFromDockerfile like this, the resulting build context will have a very unexpected structure (flattening all files in the build context root?), and building the image will fail if the user is not aware of it.

private final GenericContainer<?> container= new GenericContainer<>(
        new ImageFromDockerfile()
                .withDockerfile(Paths.get("src/main/docker/Dockerfile.jvm"))
                .withFileFromPath("./target", Paths.get("target/"))
);

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

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

はじめの一歩

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

調査の方向性

まず、例に示されている ImageFromDockerfile エントリーポイントと withDockerfile および withFileFromPath の呼び出しから始めます。src/main/docker/Dockerfile.jvm と target/ を使用してビルドを再現し、生成されたコンテキストを確認します。コンテキストの構造が直感的で、文書化されていない前提を必要とせずに例が正常にビルドできれば完了です。

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

評価

技術スタック
docker, java
領域
devops, testing
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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