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

Allow setting external dockerfile

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Medium Medium
    • Kohn Release
    • None
    • all
    • None

      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.

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

              Created:
              Updated:
              Resolved: