Uploaded image for project: 'Policy Framework'
  1. Policy Framework
  2. POLICY-4334

Allow setting external dockerfile

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Medium
    • Resolution: Done
    • None
    • Kohn Release
    • all
    • None

    Description

      It should be possible to override the dockerfile used in maven builds, e.g.

      mvn clean install -Pdocker -DdockerFile=/path/to/new/Dockerfile

      While most builds already support setting the dockerfile location, the builds may fail, as
      docker may look for files such as shell scripts in the new directory, instead of using project files under e.g. src/main/docker. Maven fabric8 plugin allows setting contextDir parameter to control that directory. Setting contextDir to ${project.basedir}/src/main/docker in this case would fix the issue.

      This task is to ensure each dockerfile can be overridden and builds correctly.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            danielhanrahan Daniel Hanrahan
            danielhanrahan Daniel Hanrahan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: