Uploaded image for project: 'WildFly Maven Plugin'
  1. WildFly Maven Plugin
  2. WFMP-181

Allow to specify user defined DockerFile

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.0.0.Final
    • Maven Plugin
    • None

      the wildfly-maven-plugin builds a docker image generating a DockerFile on the fly but I need to customize the build to change jboss unix user id (to avoid problems with docker volumes permissions)

      The simplest solution consists to pass to <image/> a user defined Dockerfile as shown below
       
      <image>
      <build>true</build>
      <jdk-version>17</jdk-version>
      ...
      <dockerfile>${basedir}/docker/Dockerfile</dockerfile>
      ...
      </image>
       

      At this time I build the docker running the docker build command without using maven but should be very useful to use only maven

              Unassigned Unassigned
              davedoh dave phikano (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: