Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-26704

docker-image-tool.sh should copy custom Dockerfiles into the build context for inclusion in images

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 2.4.0
    • None
    • Kubernetes, Spark Core
    • None

    Description

      As surfaced in the discussion on the PR for SPARK-26687 (https://github.com/apache/spark/pull/23613) when using custom Dockerfiles these are not copied into the build context. Rather the build context includes the default Dockerfiles from Spark regardless of what Dockerfiles the end user actually used to build the images.

      The suggestion in the PR was that the script should copy in the custom Dockerfiles over the stock Dockerfiles. This potentially aids in reproducing the images later because someone with an image can get the exact Dockerfile used to build that image.

      A related issue is that the script allows for and even in some cases implicitly uses Docker build arguments as part of building the images. In the case where build arguments are used these should probably also be captured in the image to aid reproducibility.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rvesse Rob Vesse
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: