--
You received this message because you are subscribed to the Google Groups "fabric8" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabric8+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I think, for your use case it's properly the best to use different Maven profiles with varying plugin configurations to achieve different variations for the same Dockerfile. The drawback is, that you would have to call Maven multiple times with each profile enable for creating the images.
As an alternative, you can use a multi-module setup and point to the same dockerFileDir in each module (e.g. by using `${project.basedir}/../shared-docker-dir/` or so). Then you can re-use the same file and fill it with different parameters. That way you can create all images with a single Maven run.
Hi Vincent,
another possible solution which is similar to your proposed solution 1) could be to use `<buildArgs>` in an individual images configuration. This would use Docker build arg support and you can fill it individually for each image. See https://dmp.fabric8.io/#build-buildargs and https://dmp.fabric8.io/#build-configuration for details, but it boils down to:
<images>
<image>
<name>image-a</name>
<buildArgs>
<paramA>firstValue</paramA>
</buildArgs>
</image>
<image>
<name>image-b</name>
<buildArgs>
<paramA>secondValueValue</paramA>
</buildArgs>
</image>
</image>