Я использую docker -maven-plugin с таким разделом сборки:
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>${fabric8.docker.maven.version}</version>
<executions>
<execution>
<id>build-docker-container</id>
<phase>package</phase>
<goals>
<goal>build</goal>
</goals>
<configuration>
<skip>false</skip>
<image>myservice-service,config</image>
</configuration>
</execution>
<execution>
...
</executions>
<configuration>
...
<images>
<image>
...
<assembly>
<basedir>/usr/share/tomcat</basedir>
<mode>tar</mode>
<inline>
<dependencySets>
<dependencySet>
<outputDirectory>webapps/${webserviceWarName}</outputDirectory>
<includes>
<include>com.github.myservice</include>
</includes>
<unpack>true</unpack>
<useProjectArtifact>false</useProjectArtifact>
</dependencySet>
</dependencySets>
</inline>
<!-- I want to include another assembly section like this, but I want it as a mode=dir (default) and without basedir set-->
<fileSets>
<fileSet>
<directory>${project.basedir}/cert</directory>
<outputDirectory>/cert/</outputDirectory>
<includes>
<include>*</include>
</includes>
</fileSet>
</fileSets>
</assembly>
</build>
<run>
...
</run>
</images>
</configuration>
</plugin>
Есть ли способ включить другой раздел сборки, но с другими mode
и basedir
разделы, как я прокомментировал в вышеупомянутом пом. xml? Большое спасибо ................................