You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to define a tile that starts a docker container for use during integration tests. I can do that easily enough by creating a tile that uses the appropriate plugin.
In some cases, I need to start multiple docker containers (e.g., message broker and a db). In that case, it appears that I need to copy the tile for the first container and make the slight changes to start the second container. It would eliminate duplication if I could do something like
start-docker/tile.xml
<project><build><plugins><plugin>
group, artifact and version
<executions>
<execution>
<goal>start-container</goal>
<configuration>
<image>@imageName@</image
</configuration
</execution>
<!-- Other executions -->
<executions>
</plugin></plugins></build></project>
Alternatively, if there was a way to override the location of tile.xml, then I could import the tile in start-db/pom.xml and do the filtering before the tile plugin ran. I suppose that I could create the tile.xml in that manner, but that is likely to be confusing, as I would have a build product outside of target.
The text was updated successfully, but these errors were encountered:
All the tiles are doing are side-loading and creating an inheritance structure - so your properties will be overwritten and you would still only have one docker image.
Have you tried just defining the same plugin but with a different execution (with its own id) and have the plugin merge them? Thats what it should do. You should end up with one plugin in your effective pom with 2 executions.
I would like to define a tile that starts a docker container for use during integration tests. I can do that easily enough by creating a tile that uses the appropriate plugin.
In some cases, I need to start multiple docker containers (e.g., message broker and a db). In that case, it appears that I need to copy the tile for the first container and make the slight changes to start the second container. It would eliminate duplication if I could do something like
start-docker/tile.xml
start-db/tile.xml
start-msg-broker/tile.xml
component/pom.xml
Alternatively, if there was a way to override the location of
tile.xml
, then I could import the tile instart-db/pom.xml
and do the filtering before the tile plugin ran. I suppose that I could create thetile.xml
in that manner, but that is likely to be confusing, as I would have a build product outside oftarget
.The text was updated successfully, but these errors were encountered: