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

Support using a non-default Dockerfile

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      With recent docker versions, the build command allows specifying a non-default Dockerfile, allowing to store multiple docker builds on the same repository.

      It would be great if there would be another field in the build step to provide the path for a non-default Dockerfile.

      For example, this is useful when building a Ruby on Rails application that has a frontend and workers, that are running from the same code base with different requirements and different command lines.

      Currently my workaround is when building a project into multiple images, before each docker build step I put in a shell build step that does `ln -sf path/to/real.Dockerfile Dockerfile`. This is not ideal.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: John DiStasio
          Path:
          src/main/java/com/cloudbees/dockerpublish/DockerBuilder.java
          src/main/resources/com/cloudbees/dockerpublish/DockerBuilder/config.jelly
          http://jenkins-ci.org/commit/docker-build-publish-plugin/61e55dce1d4c78a21740ba98d271ddcb7369d741
          Log:
          JENKINS-28600: Support Dockerfiles with non-standard names.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: John DiStasio Path: src/main/java/com/cloudbees/dockerpublish/DockerBuilder.java src/main/resources/com/cloudbees/dockerpublish/DockerBuilder/config.jelly http://jenkins-ci.org/commit/docker-build-publish-plugin/61e55dce1d4c78a21740ba98d271ddcb7369d741 Log: JENKINS-28600 : Support Dockerfiles with non-standard names.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Carlos Sanchez
          Path:
          .gitignore
          src/main/java/com/cloudbees/dockerpublish/DockerBuilder.java
          src/main/resources/com/cloudbees/dockerpublish/DockerBuilder/config.jelly
          http://jenkins-ci.org/commit/docker-build-publish-plugin/73c8a2b0f2838df38b46e9b50f47b0133ffde35c
          Log:
          Merge pull request #23 from johndistasio/JENKINS-28600

          JENKINS-28600: Support Dockerfiles with non-standard names.

          Compare: https://github.com/jenkinsci/docker-build-publish-plugin/compare/ebc78ec5e592...73c8a2b0f283

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Carlos Sanchez Path: .gitignore src/main/java/com/cloudbees/dockerpublish/DockerBuilder.java src/main/resources/com/cloudbees/dockerpublish/DockerBuilder/config.jelly http://jenkins-ci.org/commit/docker-build-publish-plugin/73c8a2b0f2838df38b46e9b50f47b0133ffde35c Log: Merge pull request #23 from johndistasio/ JENKINS-28600 JENKINS-28600 : Support Dockerfiles with non-standard names. Compare: https://github.com/jenkinsci/docker-build-publish-plugin/compare/ebc78ec5e592...73c8a2b0f283
          Show
          csanchez Carlos Sanchez added a comment - Merged https://github.com/jenkinsci/docker-build-publish-plugin/pull/23

            People

            Assignee:
            csanchez Carlos Sanchez
            Reporter:
            guss77 Oded Arbel
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: