Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-34403

docker build fails if Dockerfile pip-installs simplejson

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When using a Dockerfile, if docker build output contains "Successfully built" in stdout of some
      layer, that unrelated output will be taken as image id.

      Happens with a Dockerfile containing `RUN pip install simplejson`, for
      example.

      pip install outputs
      {{Successfully built simplejson
      }}

      And docker outputs

      {{Successfully built cb74fa59e071
      }}

        Attachments

          Activity

          Show
          fungusakafungus Ilya Margolin added a comment - Pull request: https://github.com/jenkinsci/docker-custom-build-environment-plugin/pull/55
          Hide
          dhs Dirk Heinrichs added a comment -

          Just ran into this myself. Please merge that PR.

          BTW: Could have been avoided if the regex contained a pattern for the image ID.

          Show
          dhs Dirk Heinrichs added a comment - Just ran into this myself. Please merge that PR. BTW: Could have been avoided if the regex contained a pattern for the image ID.
          Hide
          jh86 Jon Hermansen added a comment - - edited

          I wrote a functional test for this fix. I'm hoping to see the above PR merged in as well. https://github.com/jenkinsci/docker-custom-build-environment-plugin/pull/69

          By the way, docker build supports a flag called --iidfile, which will write the built image ID to a separate file. https://docs.docker.com/engine/reference/commandline/build/#options

          Show
          jh86 Jon Hermansen added a comment - - edited I wrote a functional test for this fix. I'm hoping to see the above PR merged in as well. https://github.com/jenkinsci/docker-custom-build-environment-plugin/pull/69 By the way, docker build supports a flag called --iidfile, which will write the built image ID to a separate file. https://docs.docker.com/engine/reference/commandline/build/#options
          Hide
          jonhermansen Jon Hermansen added a comment -

          The fix is released in 1.7.3, closing.

          Show
          jonhermansen Jon Hermansen added a comment - The fix is released in 1.7.3, closing.

            People

            • Assignee:
              jonhermansen Jon Hermansen
              Reporter:
              fungusakafungus Ilya Margolin
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: