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

Images that specify an entrypoint can not be used as a build environment

XMLWordPrintable

      Steps:

      1. Create an image that specifies an entrypoint in the Dockerfile, e.g.:
      ENTRYPOINT [ "/usr/share/maven/bin/mvn" ]
      2. Create a build job that uses the image as a Build Environment

      When the environment is started docker run passes "cat" as a command but does not override the entry point. The result is that "/usr/share/maven/bin/mvn cat" is invoked in the container which typically fails causing the whole build to fail with an unexpected error.

      There is no configuration option to specify the entrypoint for the Build Environment.

            ndeloof Nicolas De Loof
            spingel Steffen Pingel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: