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

Create an attribute to set Dockerfile location in @DockerFixture

XMLWordPrintable

      Create attribute to set Dockerfile location in @DockerFixture. By default Dockerfile fixture should be placed in the resource directory and at the same package as DockerContainer subtype.

      A new optional attribute called dockerfile can be added at @DockerFixture, so if it is not present then default behaviour is the expected, but if the attribute is present, Dockerfile location is get from there. This allows save Dockerfile in places where they can be reused.

      An example of the annotation might be:

      @DockerFixture(id="jira", ports="2909", dockerfile="a/b")
      public class JiraContainer ....
      

      Classpath resolution will be based on class where annotation is defined.

            asotobueno Alex Soto
            asotobueno Alex Soto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: