My docker maven plugin uses an assembly file where the files / resources to be included within
Example of such fileset to copy a user file to /secret/apiman-gateway/users folder
<!-- Apiman Gateway -->
<fileSet>
<directory>${project.basedir}/data</directory>
<outputDirectory>/secret/apiman-gateway/users</outputDirectory>
<includes>
<include>gateway-user</include>
</includes>
</fileSet>
Here is the config of the Docker Maven Plugin
<version>${docker.maven.plugin.version}</version>
<configuration>
<images>
<image>
<name>${docker.image}</name>
<build>
<from>${docker.from}</from>
<assembly>
<basedir>/deployments</basedir>
<descriptor>${project.basedir}/src/main/resources/assemblies/apiman-gateway-app.xml</descriptor>
</assembly>
This config works very well excepted that all the content defined under this folder target/docker/fabric8/apiman-gateway/2.3-SNAPSHOT/build/maven will be copied to /deployments as defined within the Dockerfile generated
COPY maven /deployments/
Is there a trick to tell to the plugin that by example this content
target/docker/fabric8/apiman-gateway/2.3-SNAPSHOT/build/maven/secret/apiman-gateway
must be copied to
/secret/apaiman-gateway/users
?
Regards,
--
Charles Moulliard
Apache Committer & PMC / Architect @RedHat